include/vcl/ITiledRenderable.hxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 82d38099a3f152590074851fe28401709a10a48f
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Tue Feb 27 06:49:24 2018 +0100

    lok: Re-introduce the cancellation of tracking.
    
    Without this, the charts tend to crash on double-click.
    
    This kind of reverts commit 86ea687d3f19c04192ee2b7a82736e110c7be334.
    
    Change-Id: I462e4beec71008a0abe29ec0bb570c8a35c82a7f
    Reviewed-on: https://gerrit.libreoffice.org/50408
    Reviewed-by: Marco Cecchetti <mrcek...@gmail.com>
    Tested-by: Marco Cecchetti <mrcek...@gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/50481
    Tested-by: Jenkins <c...@libreoffice.org>

diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 9b0e7dbe8e3a..b95ac6386829 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -120,6 +120,12 @@ public:
             break;
         case VclEventId::WindowMouseButtonUp:
             pLOKEv->mpWindow->LogicMouseButtonUp(pLOKEv->maMouseEvent);
+
+            // sometimes MouseButtonDown captures mouse and starts tracking, 
and VCL
+            // will not take care of releasing that with tiled rendering
+            if (pLOKEv->mpWindow->IsTracking())
+                pLOKEv->mpWindow->EndTracking(TrackingEventFlags::DontCallHdl);
+
             break;
         case VclEventId::WindowMouseMove:
             pLOKEv->mpWindow->LogicMouseMove(pLOKEv->maMouseEvent);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to