From: Mattia Barbon Date: Tue, 30 Jul 2002 21:20:01 +0000 (+0000) Subject: Due to my previous commit, calling wxWindow::Create( ... wxSize(-1,-1) was X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bf5c9d349fb25c069e66e86ee551e3605f6c5b90?ds=inline Due to my previous commit, calling wxWindow::Create( ... wxSize(-1,-1) was causing a BadMatch error *trying to set width/height to 0). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/window.cpp b/src/motif/window.cpp index a4d1810a6d..85a9fd34fe 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1330,7 +1330,7 @@ void wxWindow::DoSetSizeIntr(int x, int y, int width, int height, int sizeFlags, bool fromCtor) { // A bit of optimization to help sort out the flickers. - int oldX = 0, oldY = 0, oldW = 0, oldH = 0; + int oldX = -1, oldY = -1, oldW = -1, oldH = -1; if( !fromCtor ) { GetSize(& oldW, & oldH); @@ -2442,7 +2442,7 @@ void wxWindow::CanvasSetSizeIntr(int x, int y, int w, int h, int sizeFlags, bool fromCtor) { // A bit of optimization to help sort out the flickers. - int oldX = 0, oldY = 0, oldW = 0, oldH = 0; + int oldX = -1, oldY = -1, oldW = -1, oldH = -1; // see the top of the file, near DoSetSizeIntr if( !fromCtor ) {