]> git.saurik.com Git - wxWidgets.git/commitdiff
Always refresh the editor when setting property value to unspecified.
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 14 Dec 2009 15:15:35 +0000 (15:15 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 14 Dec 2009 15:15:35 +0000 (15:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/property.h
include/wx/propgrid/propgridiface.h

index 2d8b69c1d03b91e3700c94cb2f60a4401748f0cb..9ec2776a80e421bf74b22acc99ad65ea431d1901 100644 (file)
@@ -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
index afc1d191de80d592e4618ee6faea201c99298f21..6c0d41af1067070b3cb740c00deb1930b6ac050e 100644 (file)
@@ -1053,8 +1053,7 @@ public:
     void SetPropertyValueUnspecified( wxPGPropArg id )
     {
         wxPG_PROP_ARG_CALL_PROLOG()
-        wxVariant nullVariant;
-        SetPropVal(p, nullVariant);
+        p->SetValueToUnspecified();
     }
 
 #ifndef SWIG