Set built-in attributes also for parent wxPGProperties

If given attribute is not a built-in attribute handled by the current property it should be passed to the parent property because it may be handled there.
This commit is contained in:
Artur Wieczorek
2019-04-22 13:17:58 +02:00
parent 0c144f6cda
commit cbfff9c944
3 changed files with 14 additions and 13 deletions

View File

@@ -1600,8 +1600,7 @@ bool wxSystemColourProperty::DoSetAttribute( const wxString& name, wxVariant& va
return true;
}
return false;
return wxEnumProperty::DoSetAttribute(name, value);
}
@@ -2234,7 +2233,7 @@ bool wxMultiChoiceProperty::DoSetAttribute( const wxString& name, wxVariant& val
m_userStringMode = (int)value.GetLong();
return true;
}
return false;
return wxPGProperty::DoSetAttribute(name, value);
}
#endif // wxUSE_CHOICEDLG
@@ -2370,7 +2369,7 @@ bool wxDateProperty::DoSetAttribute( const wxString& name, wxVariant& value )
ms_defaultDateFormat.clear(); // This may need recalculation
return true;
}
return false;
return wxPGProperty::DoSetAttribute(name, value);
}
#endif // wxUSE_DATETIME