summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-04-16 10:26:34 +0200
committerMichael Meeks <michael.meeks@collabora.com>2019-09-26 10:04:39 +0200
commitb11268fadf76618ad37d27219b7f51255f8f8b5a (patch)
treefb14b5cc5ef0f36ee71a14f05ff723e4493ce708 /sc/source
parentb88c4c2eef6837ba43a32bbceded5e6f031962d1 (diff)
Fix range selection in chart wizard for online
In the Online when range was selected in second step of the Chart Wizard, main window become unresponsive. This fix blocks doubled MouseButtonUp event and allows to fold/unfold multiple times the range selection dialog by allowing to use that window type in SetRefDialog. Change-Id: I9f64cf7a110ab9264bc53dd740f0caf576764714 Reviewed-on: https://gerrit.libreoffice.org/79570 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/gridwin.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 0bfbcce82ddf..131f744aef69 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2646,11 +2646,14 @@ void ScGridWindow::Tracking( const TrackingEvent& rTEvt )
}
else if ( rTEvt.IsTrackingEnded() )
{
- // MouseButtonUp always with matching buttons (eg for test tool, # 63148 #)
- // The tracking event will indicate if it was completed and not canceled.
- MouseEvent aUpEvt( rMEvt.GetPosPixel(), rMEvt.GetClicks(),
- rMEvt.GetMode(), nButtonDown, rMEvt.GetModifier() );
- MouseButtonUp( aUpEvt );
+ if ( !comphelper::LibreOfficeKit::isActive() )
+ {
+ // MouseButtonUp always with matching buttons (eg for test tool, # 63148 #)
+ // The tracking event will indicate if it was completed and not canceled.
+ MouseEvent aUpEvt( rMEvt.GetPosPixel(), rMEvt.GetClicks(),
+ rMEvt.GetMode(), nButtonDown, rMEvt.GetModifier() );
+ MouseButtonUp( aUpEvt );
+ }
}
else
MouseMove( rMEvt );