[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 18 03:30:52 PDT 2012


 sw/source/ui/docvw/edtwin.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1fe4aa6ed810d1be7b81875977da1da33e9fe4bf
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Tue Sep 18 12:31:31 2012 +0200

    n#778148 sw: fix mouse pointer over urls with background image
    
    Change-Id: Idbc93dfc95dfefc4c962ef36e0557a717550b7d7

diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index ad26ab3..f9ae3ce 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|


More information about the Libreoffice-commits mailing list