vcl/source/window/window2.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 50371bd2beb3d881edfc666aac1145c9d870d8e7 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Mon Aug 23 10:06:26 2021 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Aug 31 13:44:29 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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index d2db1bb62670..88bf838cf846 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() )