DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 21837f9d0dea6ec3d4e578c9553577742d4f04ef
parent b84a40b4f84a090ae7d85f043f63c3128023c47d
Author: falkTX <falktx@falktx.com>
Date:   Sat,  5 Jun 2021 11:36:10 +0100

Fix UI crash for plugins with no size set at init

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdgl/src/WindowPrivateData.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp @@ -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()