Center the print preview frame after fully creating it

Center the frame correctly in the sample and demonstrate the right way
to do it in the documentation.
This commit is contained in:
taler21
2022-05-21 13:26:38 +01:00
committed by Vadim Zeitlin
parent 1e483f9510
commit 4b9721536c
2 changed files with 3 additions and 3 deletions

View File

@@ -56,8 +56,8 @@ case WXPRINT_PREVIEW:
wxPrintPreview *preview = new wxPrintPreview(new MyPrintout, new MyPrintout);
wxPreviewFrame *frame = new wxPreviewFrame(preview, this,
"Demo Print Preview");
frame->Centre(wxBOTH);
frame->Initialize();
frame->Centre(wxBOTH);
frame->Show(true);
break;
}