diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 84c14fd2e1..807b1509d8 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1815,7 +1815,7 @@ void wxCursorProperty::OnCustomPaint( wxDC& dc, wxCursor cursor( cursorIndex ); -#if defined(__WXMSW__) || defined(__WXGTK__) +#if defined(__WXMSW__) || ( defined(__WXGTK__) && defined(__WXGTK20__) ) wxBitmap bmp(cursor); if ( bmp.IsOk() ) {