]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/wizard.cpp
initial native implementation of wxCalendarCtrl for MSW
[wxWidgets.git] / src / generic / wizard.cpp
index 74c26780b8c9c1862e9ea489ea999bb0aa8c2fdf..5fcf9f92070177198f40f35b48026070cbc26504 100644 (file)
@@ -958,6 +958,8 @@ bool wxWizard::ResizeBitmap(wxBitmap& bmp)
     if (bmp.Ok())
     {
         wxSize pageSize = m_sizerPage->GetSize();
     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;
 
         int bitmapWidth = wxMax(bmp.GetWidth(), GetMinimumBitmapWidth());
         int bitmapHeight = pageSize.y;