diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 13b58a582c..c8cfcfd91e 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1891,11 +1891,7 @@ void wxImageFileProperty::OnCustomPaint( wxDC& dc, { wxImage imgScaled = m_image; imgScaled.Rescale(rect.width, rect.height); -#ifdef __WXMSW__ m_bitmap = wxBitmap(imgScaled, dc); -#else - m_bitmap = wxBitmap(imgScaled); -#endif } }