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

Kshitij Pathania kshitijpathania at gmail.com
Mon Jan 22 09:53:57 UTC 2018


 svx/source/stbctrls/selctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit de1bb0878fc7d7eb6071ec94d770712648013075
Author: Kshitij Pathania <kshitijpathania at gmail.com>
Date:   Mon Jan 22 00:32:22 2018 +0530

    tdf#100370 Selection icon now working properly on mouse click
    
    Change-Id: I45786ab3eb0b93d2f987d83156011b768869a414
    Reviewed-on: https://gerrit.libreoffice.org/48279
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx
index 6a59e61d4864..587daf9abf38 100644
--- a/svx/source/stbctrls/selctrl.cxx
+++ b/svx/source/stbctrls/selctrl.cxx
@@ -107,7 +107,7 @@ bool SvxSelectionModeControl::MouseButtonDown( const MouseEvent& rEvt )
     SelectionTypePopup aPop(mnState);
     StatusBar& rStatusbar = GetStatusBar();
 
-    if (aPop.Execute(&rStatusbar, rEvt.GetPosPixel()))
+    if (rEvt.IsMiddle() && aPop.Execute(&rStatusbar, rEvt.GetPosPixel()))
     {
         sal_uInt16 nNewState = aPop.GetState();
         if ( nNewState != mnState )


More information about the Libreoffice-commits mailing list