Bug related to icon/bitmap conversion, fix by Mumit Khan

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia
2000-01-15 21:45:30 +00:00
parent d6e4587ece
commit 74b28d5cc8
2 changed files with 8 additions and 0 deletions

View File

@@ -449,7 +449,11 @@ wxLayoutObjectIcon::wxLayoutObjectIcon(wxBitmap *icon)
{
m_Icon = icon;
if(! m_Icon)
#if wxICON_IS_BITMAP
m_Icon = new wxIcon;
#else
m_Icon = new wxBitmap;
#endif
}
void