Eeschema: fix compatibility issue with wxWidgets 2.8.12

This commit is contained in:
jean-pierre charras 2012-07-12 16:59:06 +02:00
parent 8234b9e184
commit 8439dc450f
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ HIERARCHY_TREE::HIERARCHY_TREE( HIERARCHY_NAVIG_DLG* parent ) :
// Make an image list containing small icons
// All icons are expected having the same size.
wxBitmap tree_nosel_bm( KiBitmap( tree_nosel_xpm ) );
imageList = new wxImageList( tree_nosel_bm.GetSize().x,
tree_nosel_bm.GetSize().y, true, 2 );
imageList = new wxImageList( tree_nosel_bm.GetWidth(),
tree_nosel_bm.GetHeight(), true, 2 );
imageList->Add( tree_nosel_bm );
imageList->Add( KiBitmap( tree_sel_xpm ) );