create image list of the right size to avoid asserts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-09-20 18:58:39 +00:00
parent 0ae0bb792b
commit a374426f34

View File

@ -574,9 +574,11 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
};
// fill the image list
wxImageList *imagelist = new wxImageList(32, 32);
wxBitmap bmp(list_xpm);
imagelist-> Add( wxBitmap( list_xpm ));
wxImageList *imagelist = new wxImageList(bmp.GetWidth(), bmp.GetHeight());
imagelist-> Add( bmp );
imagelist-> Add( wxBitmap( choice_xpm ));
imagelist-> Add( wxBitmap( combo_xpm ));
imagelist-> Add( wxBitmap( text_xpm ));