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:
parent
f210b1b521
commit
49b7574928
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user