From 49b7574928dabea08cbf59b1769f32a63303708e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 1 Mar 2008 11:23:52 +0000 Subject: [PATCH] Image size fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/wizard.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 74c26780b8..5fcf9f9207 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -958,6 +958,8 @@ bool wxWizard::ResizeBitmap(wxBitmap& bmp) if (bmp.Ok()) { wxSize pageSize = m_sizerPage->GetSize(); + if (pageSize == wxSize(0,0)) + pageSize = GetPageSize(); int bitmapWidth = wxMax(bmp.GetWidth(), GetMinimumBitmapWidth()); int bitmapHeight = pageSize.y; -- 2.45.2