diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-18 12:31:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-18 12:32:27 +0200 |
commit | 1fe4aa6ed810d1be7b81875977da1da33e9fe4bf (patch) | |
tree | 6265da80a5e8817a71f0ecc4a8400c5787cd413a /sw/source/ui/docvw/edtwin.cxx | |
parent | b854de954f3dd66b569af3a5ec5cdf81a78c70ca (diff) |
n#778148 sw: fix mouse pointer over urls with background image
Change-Id: Idbc93dfc95dfefc4c962ef36e0557a717550b7d7
Diffstat (limited to 'sw/source/ui/docvw/edtwin.cxx')
-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 ad26ab30681b..f9ae3ce43bbd 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -578,7 +578,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| |