]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/property.cpp
make sure theme font info is reset if anything is changed
[wxWidgets.git] / src / propgrid / property.cpp
index 7f2f5a66ed7785b76ef4e74dd5b437c84af29d66..221ebb4f770e5833446f4e0bbc94caadd16f8d20 100644 (file)
@@ -1634,18 +1634,20 @@ long wxPGProperty::GetAttributeAsLong( const wxString& name, long defVal ) const
 {
     wxVariant variant = m_attributes.FindValue(name);
 
-    return wxPGVariantToInt(variant, defVal);
+    if ( variant.IsNull() )
+        return defVal;
+
+    return variant.GetLong();
 }
 
 double wxPGProperty::GetAttributeAsDouble( const wxString& name, double defVal ) const
 {
-    double retVal;
     wxVariant variant = m_attributes.FindValue(name);
 
-    if ( wxPGVariantToDouble(variant, &retVal) )
-        return retVal;
+    if ( variant.IsNull() )
+        return defVal;
 
-    return defVal;
+    return variant.GetDouble();
 }
 
 wxVariant wxPGProperty::GetAttributesAsList() const