From 0e736b0c20e096c5daf59f141b4509cfcc159a79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Szymon=20K=C5=82os?= Date: Mon, 23 Aug 2021 10:06:26 +0200 Subject: [PATCH] Check mpWindowImpl before use in Window::EndTracking MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I0a4ddd1b61f5919f346bb2f3a1e2ca9fbad958bc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120860 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122108 Reviewed-by: Szymon Kłos Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123098 Tested-by: Jenkins --- vcl/source/window/window2.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index cd596b240012..bf58278e5b15 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -286,6 +286,7 @@ void Window::EndTracking( TrackingEventFlags nFlags ) ReleaseMouse(); // call EndTracking if required + if (mpWindowImpl && mpWindowImpl->mpFrameData) { Point aMousePos( mpWindowImpl->mpFrameData->mnLastMouseX, mpWindowImpl->mpFrameData->mnLastMouseY ); if( GetOutDev()->ImplIsAntiparallel() ) -- 2.11.4.GIT