X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a802c3a1f665a21fde886de6234d877e49aaccf6..17dff81c7141e142765b168ab225e5c61475669f:/src/gtk1/dialog.cpp diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index 0e26ee1808..f34fbdbf69 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -245,7 +245,7 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) ) { - wxASSERT_MSG( (m_widget != NULL), "invalid frame" ); + wxASSERT_MSG( (m_widget != NULL), "invalid dialog" ); if (GetAutoLayout()) { @@ -254,14 +254,14 @@ void wxDialog::OnSize( wxSizeEvent &WXUNUSED(event) ) else { // no child: go out ! - if (!GetChildren()->First()) return; + if (!GetChildren().First()) return; // do we have exactly one child? wxWindow *child = (wxWindow *) NULL; - for(wxNode *node = GetChildren()->First(); node; node = node->Next()) + for(wxNode *node = GetChildren().First(); node; node = node->Next()) { wxWindow *win = (wxWindow *)node->Data(); - if (!IS_KIND_OF(win,wxFrame) && !IS_KIND_OF(win,wxDialog)) + if (!wxIS_KIND_OF(win,wxFrame) && !wxIS_KIND_OF(win,wxDialog)) { // it's the second one: do nothing if (child) return;