[Libreoffice-commits] core.git: sc/source

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 6 15:39:54 UTC 2019


 sc/source/ui/drawfunc/fusel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0a7cb98f2fd36be5928b6beb73cd514c9040d87e
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Tue Aug 6 16:30:39 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Tue Aug 6 17:39:00 2019 +0200

    Select shape even when clicking on a hyperlink
    
    and the hyperlink isn't being opened anyway (no ctrl clicked e.g.)
    
    Change-Id: I262a32b0f295ed66339c0a12a551f68d9d63c978
    Reviewed-on: https://gerrit.libreoffice.org/77032
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx
index a29abd774958..f3e9af4dac8c 100644
--- a/sc/source/ui/drawfunc/fusel.cxx
+++ b/sc/source/ui/drawfunc/fusel.cxx
@@ -218,7 +218,7 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
                 }
 
                 // open hyperlink, if found at object or in object's text
-                if ( !sURL.isEmpty() )
+                if ( !sURL.isEmpty() && ScGlobal::ShouldOpenURL() )
                 {
                     ScGlobal::OpenURL( sURL, sTarget );
                     rViewShell.FakeButtonUp( rViewShell.GetViewData().GetActivePart() );


More information about the Libreoffice-commits mailing list