sc/source/ui/view/gridwin.cxx |   15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

New commits:
commit f3b2dd0fc4c413c9a8382aecbd8b7f842bfa8c28
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Thu Jun 24 07:48:19 2021 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Wed Feb 16 22:57:52 2022 +0100

    lok: sc: handle all local mouse tracking for Calc
    
    Change-Id: I11f3477c0f966d403e076fc73b7e5507ad6597f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118877
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117779
    Tested-by: Jenkins
    Reviewed-by: Henry Castro <hcas...@collabora.com>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index cba63146bab4..6fd0976d424d 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2994,16 +2994,13 @@ void ScGridWindow::Tracking( const TrackingEvent& rTEvt 
)
     }
     else if ( rTEvt.IsTrackingEnded() )
     {
-        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 );
-        }
+        // 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 if ( !comphelper::LibreOfficeKit::isActive() )
+    else
         MouseMove( rMEvt );
 }
 

Reply via email to