From c4fee2531a15c650bfd7f9f1db7ca02551e4cfd8 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Wed, 13 Jan 2010 18:29:09 +0000 Subject: [PATCH] Fixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified() unconditionally, disregarding value of 'unspecified' argument. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/editors.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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), -- 2.45.2