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
int sizeFlags, bool fromCtor)
{
// A bit of optimization to help sort out the flickers.
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);
if( !fromCtor )
{
GetSize(& oldW, & oldH);
bool fromCtor)
{
// A bit of optimization to help sort out the flickers.
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 )
{
// see the top of the file, near DoSetSizeIntr
if( !fromCtor )
{