wxCalculateLayoutEvent event;
event.SetRect(rect);
- wxNode* node = frame->GetChildren()->First();
+ wxNode* node = frame->GetChildren().First();
while (node)
{
wxWindow* win = (wxWindow*) node->Data();
wxCalculateLayoutEvent event;
event.SetRect(rect);
- wxNode* node = frame->GetChildren()->First();
+ wxNode* node = frame->GetChildren().First();
while (node)
{
wxWindow* win = (wxWindow*) node->Data();
rect = event.GetRect();
- mainWindow->SetSize(rect.x, rect.y, rect.width, rect.height);
+ if (mainWindow)
+ mainWindow->SetSize(rect.x, rect.y, rect.width, rect.height);
return TRUE;
}