From 3c38adcc03884f631206d1f2a944282ea3183a4c Mon Sep 17 00:00:00 2001 From: attila Date: Tue, 22 Oct 2024 16:24:59 +0200 Subject: [PATCH] ResizableWindow: Remove assertion The assertion can routinely fire on Linux, where a window may go through many size changes from (0, 0) to its actual size due to the nature of how XWindow reports these in subsequent ConfigureNotify events. These subsequent changes aren't visibly observable by users. --- modules/juce_gui_basics/windows/juce_ResizableWindow.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp b/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp index 1451c75884..56d9c2d279 100644 --- a/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp @@ -226,10 +226,6 @@ void ResizableWindow::childBoundsChanged (Component* child) { if ((child == contentComponent) && (child != nullptr) && resizeToFitContent) { - // not going to look very good if this component has a zero size.. - jassert (child->getWidth() > 0); - jassert (child->getHeight() > 0); - auto borders = getContentComponentBorder(); setSize (child->getWidth() + borders.getLeftAndRight(),