]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/editors.cpp
Fixed dialog units <-> pixels conversion.
[wxWidgets.git] / 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),