summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKshitij Pathania <kshitijpathania@gmail.com>2018-01-22 00:32:22 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-01-22 10:53:31 +0100
commitde1bb0878fc7d7eb6071ec94d770712648013075 (patch)
tree87630311e5775fafbd87cc3a3749c1dd61748259
parentd68df7842d5d30ac63eb0b1b127a62386c32a120 (diff)
tdf#100370 Selection icon now working properly on mouse click
Change-Id: I45786ab3eb0b93d2f987d83156011b768869a414 Reviewed-on: https://gerrit.libreoffice.org/48279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--svx/source/stbctrls/selctrl.cxx2
1 files changed, 1 insertions, 1 deletions
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 )