[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source

Henry Castro hcastro at collabora.com
Fri Mar 13 02:08:49 PDT 2015


 sc/source/ui/view/gridwin.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 26fc9e462e3a2be070855ed3af7a3afced48bc9e
Author: Henry Castro <hcastro at collabora.com>
Date:   Fri Mar 13 08:31:25 2015 +0100

    sc tiled editing: EndTracking() is necessary in the tiled rendering case.
    
    Change-Id: I0fc550ed669e08787b968ec03c09c1d8ad04dd65

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index ccdc037..add8d1b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2433,6 +2433,11 @@ void ScGridWindow::LogicMouseButtonUp(const MouseEvent& rMouseEvent)
     assert(rDoc.GetDrawLayer()->isTiledRendering());
 
     MouseButtonUp(rMouseEvent);
+
+    // sometimes MouseButtonDown captures mouse and starts tracking, and VCL
+    // will not take care of releasing that with tiled rendering
+    if (IsTracking())
+        EndTracking();
 }
 
 void ScGridWindow::FakeButtonUp()


More information about the Libreoffice-commits mailing list