diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 32a4a41c8e..faeb3855df 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -104,8 +104,6 @@ bool wxStaticBitmap::Create(wxWindow *parent, // we may have either bitmap or icon: if a bitmap with mask is passed, we // will transform it to an icon ourselves because otherwise the mask will // be ignored by Windows - m_isIcon = bitmap.IsKindOf(wxCLASSINFO(wxIcon)); - wxGDIImage *image = ConvertImage( bitmap ); m_isIcon = image->IsKindOf( wxCLASSINFO(wxIcon) );