vcl/source/window/window2.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit d037ad98ca75ae857a566b62e2e86a1a5e7c3590
Author: Noel Grandin <[email protected]>
AuthorDate: Fri Jan 27 08:50:04 2023 +0200
Commit: Noel Grandin <[email protected]>
CommitDate: Mon Jan 30 17:28:52 2023 +0000
fix online crash in WIndow::IsTracking
/opt/collaboraoffice/program/libmergedlo.so
vcl::Window::IsTracking() const
/home/collabora/jenkins/workspace/build_core_co-22.05_for_online_snapshot/vcl/source/window/window2.cxx:340
/opt/collaboraoffice/program/libmergedlo.so
(anonymous namespace)::LOKPostAsyncEvent(void*, void*)
/home/collabora/jenkins/workspace/build_core_co-22.05_for_online_snapshot/sfx2/source/view/lokhelper.cxx:812
/opt/collaboraoffice/program/libmergedlo.so
LokChartHelper::postMouseEvent(int, int, int, int, int, int, double,
double)
/home/collabora/jenkins/workspace/build_core_co-22.05_for_online_snapshot/include/rtl/ref.hxx:128
Change-Id: I204bac7d8f595054abe9b6e8e631c02b26e20361
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146231
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Noel Grandin <[email protected]>
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index bf8973114185..7334d423e9bc 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -337,6 +337,8 @@ void Window::EndTracking( TrackingEventFlags nFlags )
bool Window::IsTracking() const
{
+ if (!mpWindowImpl)
+ return false;
return (mpWindowImpl->mbUseFrameData ?
mpWindowImpl->mpFrameData->mpTrackWin == this :
ImplGetSVData()->mpWinData->mpTrackWin == this);