if ( size.x > 0 && size.y > 0 )
{
wxSizeEvent evt(size,GetId());
- event.SetEventObject(this);
+ evt.SetEventObject(this);
GetEventHandler()->AddPendingEvent(evt);
}
if ( IsCreated() )
{
wxSizeEvent evt(GetSize(),GetId());
- event.SetEventObject(this);
+ evt.SetEventObject(this);
GetEventHandler()->ProcessEvent(evt);
Refresh();
}