commit 50849162456c244deb4878fee21efbfae50ce3f5
parent cbe07278771727abb9dc2108786f08ff687bc48e
Author: falkTX <falktx@falktx.com>
Date: Sun, 23 May 2021 23:26:48 +0100
Fix crashes under win32
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp
@@ -574,7 +574,9 @@ void Window::PrivateData::onPuglConfigure(const double width, const double heigh
const uint uwidth = static_cast<uint>(width + 0.5);
const uint uheight = static_cast<uint>(height + 0.5);
- self->onReshape(uwidth, uheight);
+
+ if (self != nullptr)
+ self->onReshape(uwidth, uheight);
#ifndef DPF_TEST_WINDOW_CPP
if (topLevelWidget != nullptr)