X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2aea0d1ce77036b2bee9620e1f9947d62bf0e52..0d2cd276ccd1107e4d91514959b762d334633634:/samples/docview/view.cpp diff --git a/samples/docview/view.cpp b/samples/docview/view.cpp index a41b00aa0d..957aff4018 100644 --- a/samples/docview/view.cpp +++ b/samples/docview/view.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -57,7 +53,7 @@ bool DrawingView::OnCreate(wxDocument *doc, long WXUNUSED(flags) ) // X seems to require a forced resize int x, y; frame->GetSize(&x, &y); - frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, x, y); + frame->SetSize(wxDefaultCoord, wxDefaultCoord, x, y); #endif frame->Show(true); } @@ -168,7 +164,7 @@ bool TextEditView::OnCreate(wxDocument *doc, long WXUNUSED(flags) ) // X seems to require a forced resize int x, y; frame->GetSize(&x, &y); - frame->SetSize(wxDefaultPosition.x, wxDefaultPosition.y, x, y); + frame->SetSize(wxDefaultCoord, wxDefaultCoord, x, y); #endif frame->Show(true);