diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2021-08-23 10:06:26 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-05-23 10:48:33 +0200 |
commit | 019d9472d29adbb6487e20433b6c576047b16e66 (patch) | |
tree | 298e32a44fc2fb42b58b1aab5a10cd4cff7b2ab9 /vcl | |
parent | 87494146c5f56ef8779966f8c59544613a4d3f60 (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>
Diffstat (limited to 'vcl')
-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 aa791975e765..0e4b3d6ee00f 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( ImplIsAntiparallel() ) |