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:
@@ -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,6 +301,7 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg,
|
||||
}
|
||||
|
||||
// Also call the old SetValueToUnspecified()
|
||||
if ( unspecified )
|
||||
SetValueToUnspecified(property, ctrl);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user