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
This commit is contained in:
Jaakko Salli
2010-01-13 18:29:09 +00:00
parent 4cdbd8f357
commit c4fee2531a

View File

@@ -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),