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
This commit is contained in:
parent
e81a301cbd
commit
bf5c9d349f
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user