diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-18 12:31:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-28 15:38:00 +0200 |
commit | e00739cf1d2253322c24f17b9678f59e3985d6a4 (patch) | |
tree | 4a6a17ef0e5dffb66c3dab4d98b54bee3fd66e1f /sw/source | |
parent | 30451a6c314dc44ff086e38885084b4fbd31e28f (diff) |
n#778148 sw: fix mouse pointer over urls with background image
Change-Id: Idbc93dfc95dfefc4c962ef36e0557a717550b7d7
(cherry picked from commit 1fe4aa6ed810d1be7b81875977da1da33e9fe4bf)
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/docvw/edtwin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 60233cb716f8..2afa975b2b5c 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -568,7 +568,9 @@ void SwEditWin::UpdatePointer(const Point &rLPt, sal_uInt16 nModifier ) eStyle = POINTER_ARROW; else { - if( bCntAtPos ) + // Even if we already have something, prefer URLs if possible. + SwContentAtPos aUrlPos(SwContentAtPos::SW_INETATTR); + if (bCntAtPos || rSh.GetContentAtPos(rLPt, aUrlPos)) { SwContentAtPos aSwContentAtPos( SwContentAtPos::SW_CLICKFIELD| |