]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified(...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 13 Jan 2010 18:29:09 +0000 (18:29 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 13 Jan 2010 18:29:09 +0000 (18:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index cdff0592d0df11d116ef12dbd0a372a86a181347..140e0ff5963178d376490fba8e6b6cf9cf9c5eec 100644 (file)
@@ -212,7 +212,7 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg,
                                        wxWindow* ctrl,
                                        const wxPGCell& cell,
                                        const wxPGCell& oCell,
-                                       bool WXUNUSED(unspecified) ) const
+                                       bool unspecified ) const
 {
     // Get old editor appearance
     wxTextCtrl* tc = NULL;
@@ -301,7 +301,8 @@ void wxPGEditor::SetControlAppearance( wxPropertyGrid* pg,
     }
 
     // Also call the old SetValueToUnspecified()
-    SetValueToUnspecified(property, ctrl);
+    if ( unspecified )
+        SetValueToUnspecified(property, ctrl);
 }
 
 void wxPGEditor::SetValueToUnspecified( wxPGProperty* WXUNUSED(property),