X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22909aef2d8b1f1d245a73640c215af93538c9a9..5c3c1372775ad7fd04448fb033ba1224780f6b65:/src/propgrid/editors.cpp diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index cdff0592d0..140e0ff596 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -212,7 +212,7 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg, wxWindow* ctrl, const wxPGCell& cell, const wxPGCell& oCell, - bool WXUNUSED(unspecified) ) const + bool unspecified ) const { // Get old editor appearance wxTextCtrl* tc = NULL; @@ -301,7 +301,8 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg, } // Also call the old SetValueToUnspecified() - SetValueToUnspecified(property, ctrl); + if ( unspecified ) + SetValueToUnspecified(property, ctrl); } void wxPGEditor::SetValueToUnspecified( wxPGProperty* WXUNUSED(property),