1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00

Standalone: Avoid hitting an assertion when setting resize limits

This commit is contained in:
ed 2021-03-16 16:58:34 +00:00
parent 7b6ad28b46
commit 914119eca5

View file

@ -828,8 +828,8 @@ private:
const auto extraWindowWidth = borders.getLeftAndRight();
const auto extraWindowHeight = extraHeight + borders.getTopAndBottom();
owner.setResizeLimits (editorConstrainer->getMinimumWidth() + extraWindowWidth,
editorConstrainer->getMinimumHeight() + extraWindowHeight,
owner.setResizeLimits (jmax (10, editorConstrainer->getMinimumWidth() + extraWindowWidth),
jmax (10, editorConstrainer->getMinimumHeight() + extraWindowHeight),
editorConstrainer->getMaximumWidth() + extraWindowWidth,
editorConstrainer->getMaximumHeight() + extraWindowHeight);
}