vcl/source/window/paint.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5946f67e1db31926af92ea3d0d8eeb58978ea782
Author: Andras Timar <[email protected]>
AuthorDate: Mon Nov 3 19:09:04 2025 +0100
Commit: Andras Timar <[email protected]>
CommitDate: Tue Nov 4 12:07:30 2025 +0100
vcl: check mpWindowImpl for nullptr
Change-Id: Ib70e14cd791415f47772b1053200e9bab6925e8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193372
Tested-by: Caolán McNamara <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins CollaboraOffice <[email protected]>
(cherry picked from commit 4c63a86c88d54db5e69dc8502b6eeffa7f1e4417)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193393
Reviewed-by: Andras Timar <[email protected]>
Tested-by: Jenkins
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index a6df7a30f36c..ce8544aa22f5 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1252,6 +1252,8 @@ void Window::Validate()
bool Window::HasPaintEvent() const
{
+ if (!mpWindowImpl)
+ return false;
if ( !mpWindowImpl->mbReallyVisible )
return false;