From 98dd4ee512e6dda9ccf6f862161be41bd3105c4b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 6 Jul 2002 14:35:55 +0000 Subject: [PATCH] You can crash GTK with scrolled windows being only 20x20 pixels large. This took me merely three weeks to find out. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/window.h b/include/wx/window.h index 48c0020e7a..2352b90c17 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -951,9 +951,9 @@ protected: virtual wxBorder GetDefaultBorder() const; // get the default size for the new window if no explicit size given - // FIXME why 20 and not 30, 10 or ...? - static int WidthDefault(int w) { return w == -1 ? 20 : w; } - static int HeightDefault(int h) { return h == -1 ? 20 : h; } + // FIXME why 40 and not 20, 10 or ...? GTK can crash with 40. RR. + static int WidthDefault(int w) { return w == -1 ? 40 : w; } + static int HeightDefault(int h) { return h == -1 ? 40 : h; } // set the best size for the control if the default size was given: // replaces the fields of size == -1 with the best values for them and -- 2.50.0