Browse Source

Fix UI crash for plugins with no size set at init

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

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

@@ -176,7 +176,7 @@ Window::PrivateData::PrivateData(Application& a, Window* const s,
if (isEmbed)
puglSetParentWindow(view, parentWindowHandle);

initPre(width, height, resizable);
initPre(width != 0 ? width : DEFAULT_WIDTH, height != 0 ? height : DEFAULT_HEIGHT, resizable);
}

Window::PrivateData::~PrivateData()


Loading…
Cancel
Save