diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 9d880d5094..e3d07b8180 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -434,7 +434,7 @@ void MyChild::OnChangeTitle(wxCommandEvent& WXUNUSED(event)) wxString title = wxGetTextFromUser(_T("Enter the new title for MDI child"), _T("MDI sample question"), s_title, - GetParent()->GetParent()); + GetParent()); if ( !title ) return;