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,
|
wxWindow* ctrl,
|
||||||
const wxPGCell& cell,
|
const wxPGCell& cell,
|
||||||
const wxPGCell& oCell,
|
const wxPGCell& oCell,
|
||||||
bool WXUNUSED(unspecified) ) const
|
bool unspecified ) const
|
||||||
{
|
{
|
||||||
// Get old editor appearance
|
// Get old editor appearance
|
||||||
wxTextCtrl* tc = NULL;
|
wxTextCtrl* tc = NULL;
|
||||||
@@ -301,7 +301,8 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Also call the old SetValueToUnspecified()
|
// Also call the old SetValueToUnspecified()
|
||||||
SetValueToUnspecified(property, ctrl);
|
if ( unspecified )
|
||||||
|
SetValueToUnspecified(property, ctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxPGEditor::SetValueToUnspecified( wxPGProperty* WXUNUSED(property),
|
void wxPGEditor::SetValueToUnspecified( wxPGProperty* WXUNUSED(property),
|
||||||
|
Reference in New Issue
Block a user