make sure wxWindow has valid (albeit bogus) size from the beginning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
78d2c24197
commit
dbbdd3465f
@ -126,6 +126,10 @@ bool wxWindowDFB::Create(wxWindow *parent,
|
|||||||
if ( parent )
|
if ( parent )
|
||||||
parent->AddChild(this);
|
parent->AddChild(this);
|
||||||
|
|
||||||
|
// set the size to something bogus initially, in case some code tries to
|
||||||
|
// create wxWindowDC before SetSize() is called below:
|
||||||
|
m_rect.width = m_rect.height = 1;
|
||||||
|
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
x = pos.x, y = pos.y;
|
x = pos.x, y = pos.y;
|
||||||
if ( x == -1 ) x = 0;
|
if ( x == -1 ) x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user