git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56064
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxPGProperty::SetValue( wxVariant value, wxVariant* pList, int flags )
{
void wxPGProperty::SetValue( wxVariant value, wxVariant* pList, int flags )
{
+ // If auto unspecified values are not wanted (via window or property style),
+ // then get default value instead of wxNullVariant.
+ if ( value.IsNull() && (flags & wxPG_SETVAL_BY_USER) &&
+ !UsesAutoUnspecified() )
+ {
+ value = GetDefaultValue();
+ }
+
if ( !value.IsNull() )
{
wxVariant tempListVariant;
if ( !value.IsNull() )
{
wxVariant tempListVariant;