diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 2d8b69c1d0..9ec2776a80 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -2043,7 +2043,7 @@ public: void SetValueToUnspecified() { wxVariant val; // Create NULL variant - SetValue(val); + SetValue(val, NULL, wxPG_SETVAL_REFRESH_EDITOR); } // Helper function (for wxPython bindings and such) for settings protected diff --git a/include/wx/propgrid/propgridiface.h b/include/wx/propgrid/propgridiface.h index afc1d191de..6c0d41af10 100644 --- a/include/wx/propgrid/propgridiface.h +++ b/include/wx/propgrid/propgridiface.h @@ -1053,8 +1053,7 @@ public: void SetPropertyValueUnspecified( wxPGPropArg id ) { wxPG_PROP_ARG_CALL_PROLOG() - wxVariant nullVariant; - SetPropVal(p, nullVariant); + p->SetValueToUnspecified(); } #ifndef SWIG