From 269619bfbd81e1062a867a5162c058980ee972ab Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Mon, 14 Dec 2009 15:15:35 +0000 Subject: [PATCH] Always refresh the editor when setting property value to unspecified. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/propgrid/property.h | 2 +- include/wx/propgrid/propgridiface.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.45.2