Remove unnecessary wxPreviewFrame::Layout() call

No real changes, just remove the useless call which was left over the
very first version of this code added in 7bcb11d307 (Many changes to the
printing classes., 1999-03-25).
This commit is contained in:
Vadim Zeitlin
2022-05-19 17:21:49 +02:00
parent 91a0dc3197
commit 93a6784c5f

View File

@@ -1794,8 +1794,6 @@ void wxPreviewFrame::InitializeWithModality(wxPreviewFrameModalityKind kind)
SetWindowStyle((GetWindowStyle() & ~wxMINIMIZE_BOX) | wxFRAME_NO_TASKBAR);
}
Layout();
m_printPreview->AdjustScrollbars(m_previewCanvas);
m_previewCanvas->SetFocus();
m_controlBar->SetFocus();