From 914119eca57f6d58ca4243ec36d7b08953119947 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Mar 2021 16:58:34 +0000 Subject: [PATCH] Standalone: Avoid hitting an assertion when setting resize limits --- .../Standalone/juce_StandaloneFilterWindow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h b/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h index 40d8a60741..7ef90c643b 100644 --- a/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h +++ b/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h @@ -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); }