From fc0a4d4e62e4babc73f22ee4a7c17a0418e5abab Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 May 2022 17:12:50 +0100 Subject: [PATCH] Correct client/window confusing in wxPreviewFrame code Pass the window size to SetSizeHints() to make sure the window minimum size is set as expected. --- src/common/prntbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index e72963a49f..5ef94ae7db 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1780,7 +1780,7 @@ void wxPreviewFrame::InitializeWithModality(wxPreviewFrameModalityKind kind) // want to make it at least as wide as the control bar, as otherwise the // buttons wouldn't fit, and restricting it to at least its height // vertically is also quite reasonable. - SetSizeHints(m_controlBar->GetBestSize()); + SetSizeHints(ClientToWindowSize(m_controlBar->GetBestSize())); m_modalityKind = kind; switch ( m_modalityKind )