X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43543d985b04d065178df50dbbc998786ff97282..a4372af60a7eed11d0deea8db2c7d0fdd75d2b76:/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) ;