]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/advprops.cpp
Added DoGetClientBestSize() and use it for a couple of controls in wxMSW.
[wxWidgets.git] / src / propgrid / advprops.cpp
index 963abd0933eba31e034930baa525aea161d27423..7fa93bcc192849eb0c07f1c22223fb7a5430f065 100644 (file)
@@ -720,7 +720,7 @@ wxVariant wxFontProperty::ChildChanged( wxVariant& thisValue,
 
     if ( ind == 0 )
     {
-        font.SetPointSize( wxPGVariantToInt(childValue) );
+        font.SetPointSize( childValue.GetLong() );
     }
     else if ( ind == 1 )
     {
@@ -1425,7 +1425,7 @@ bool wxSystemColourProperty::DoSetAttribute( const wxString& name, wxVariant& va
 {
     if ( name == wxPG_COLOUR_ALLOW_CUSTOM )
     {
-        int ival = wxPGVariantToInt(value);
+        int ival = value.GetLong();
 
         if ( ival && (m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) )
         {