From 93a6784c5fa238636723cf021dc0876ada554995 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 May 2022 17:21:49 +0200 Subject: [PATCH] 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). --- src/common/prntbase.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index d44e99da15..b78cdd73b7 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -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();