[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - vcl/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 15 10:56:59 UTC 2021


 vcl/source/window/window2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 86bcb80eaf5aa5f2e9a476157906bb2e04f18aad
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Mon Aug 23 10:06:26 2021 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Sep 15 12:56:25 2021 +0200

    Check mpWindowImpl before use in Window::EndTracking
    
    Change-Id: I0a4ddd1b61f5919f346bb2f3a1e2ca9fbad958bc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120860
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122108
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index d1f5ec5e2f95..b8307db328b1 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -287,6 +287,7 @@ void Window::EndTracking( TrackingEventFlags nFlags )
     ReleaseMouse();
 
     // call EndTracking if required
+    if (mpWindowImpl && mpWindowImpl->mpFrameData)
     {
         Point           aMousePos( mpWindowImpl->mpFrameData->mnLastMouseX, mpWindowImpl->mpFrameData->mnLastMouseY );
         if( ImplIsAntiparallel() )


More information about the Libreoffice-commits mailing list