Browse Source

Remove an if condition no longer necessary

Signed-off-by: falkTX <falktx@falktx.com>
pull/280/head
falkTX 4 years ago
parent
commit
d73e35dd1a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      dgl/src/WindowPrivateData.cpp

+ 1
- 2
dgl/src/WindowPrivateData.cpp View File

@@ -639,8 +639,7 @@ 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);

if (self != nullptr)
self->onReshape(uwidth, uheight);
self->onReshape(uwidth, uheight);

#ifndef DPF_TEST_WINDOW_CPP
if (topLevelWidget != nullptr)


Loading…
Cancel
Save