diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 3280846875..f443df08c8 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1010,18 +1010,8 @@ bool wxPGProperty::StringToValue( wxVariant& variant, const wxString& text, int { if ( len > 0 ) { - bool wasUnspecified = child->IsValueUnspecified(); - if ( child->StringToValue(variant, token, propagatedFlags|wxPG_COMPOSITE_FRAGMENT) ) { - // Clear unspecified flag only if OnSetValue() didn't - // affect it. - if ( child->IsValueUnspecified() && - (wasUnspecified || !UsesAutoUnspecified()) ) - { - variant = child->GetDefaultValue(); - } - list.Append(variant); changed = true;