X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43543d985b04d065178df50dbbc998786ff97282..b0230a69bcf6db9a18bbdefb0c3027c6a438ed55:/src/generic/imaglist.cpp diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 87eb78dcd3..403cd4f13c 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -80,7 +80,7 @@ bool wxImageList::Replace( int index, const wxBitmap &bitmap ) //so construct it from a bitmap object until I can figure this nonsense out. (DW) newBitmap = new wxBitmap(bitmap) ; #else - newBitmap = new wxIcon( (const wxIcon&) bitmap ); + newBitmap = new wxBitmap( (const wxIcon&) bitmap ); #endif else newBitmap = new wxBitmap(bitmap) ;