X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/634bb98a30b8b495c1b5b469b757a508293cb6fb..51317496171b33f2abb155a1214f567b79d66e43:/src/generic/wizard.cpp 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;