diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-08-23 10:06:26 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-10-05 16:51:12 +0200 |
commit | 0e736b0c20e096c5daf59f141b4509cfcc159a79 (patch) | |
tree | 773c37e5bd6b04cc2673c38aff27dbf624398695 | |
parent | a733c728a2e255507abf2dc7107ba730ee0f2bd8 (diff) |
Check mpWindowImpl before use in Window::EndTracking
Change-Id: I0a4ddd1b61f5919f346bb2f3a1e2ca9fbad958bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120860
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122108
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123098
Tested-by: Jenkins
-rw-r--r-- | vcl/source/window/window2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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() ) |