Image size fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2008-03-01 11:23:52 +00:00
parent f210b1b521
commit 49b7574928

View File

@ -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;