Patch #1203934: enable best size caching for MSW widgets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -208,7 +208,11 @@ void wxStaticBitmap::Free()
|
||||
wxSize wxStaticBitmap::DoGetBestSize() const
|
||||
{
|
||||
if ( ImageIsOk() )
|
||||
return wxSize(m_image->GetWidth(), m_image->GetHeight());
|
||||
{
|
||||
wxSize best(m_image->GetWidth(), m_image->GetHeight());
|
||||
CacheBestSize(best);
|
||||
return best;
|
||||
}
|
||||
|
||||
// this is completely arbitrary
|
||||
return wxSize(16, 16);
|
||||
|
Reference in New Issue
Block a user