From d73e35dd1ad116a5fdeb9ba908f5337e28077fec Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 24 May 2021 23:06:26 +0100 Subject: [PATCH] Remove an if condition no longer necessary Signed-off-by: falkTX --- dgl/src/WindowPrivateData.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp index df825c79..5eecc74c 100644 --- a/dgl/src/WindowPrivateData.cpp +++ b/dgl/src/WindowPrivateData.cpp @@ -639,8 +639,7 @@ void Window::PrivateData::onPuglConfigure(const double width, const double heigh const uint uwidth = static_cast(width + 0.5); const uint uheight = static_cast(height + 0.5); - if (self != nullptr) - self->onReshape(uwidth, uheight); + self->onReshape(uwidth, uheight); #ifndef DPF_TEST_WINDOW_CPP if (topLevelWidget != nullptr)