]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/advprops.cpp
Implementations of wxPGProperty::ChildChanged() must now return changed value of...
[wxWidgets.git] / src / propgrid / advprops.cpp
index 8f4839c4848a6cb01d8245db5402230e2974c4d2..963abd0933eba31e034930baa525aea161d27423 100644 (file)
@@ -711,7 +711,9 @@ void wxFontProperty::RefreshChildren()
     Item(5)->SetValue( font.GetUnderlined() );
 }
 
-void wxFontProperty::ChildChanged( wxVariant& thisValue, int ind, wxVariant& childValue ) const
+wxVariant wxFontProperty::ChildChanged( wxVariant& thisValue,
+                                        int ind,
+                                        wxVariant& childValue ) const
 {
     wxFont font;
     font << thisValue;
@@ -761,7 +763,9 @@ void wxFontProperty::ChildChanged( wxVariant& thisValue, int ind, wxVariant& chi
         font.SetUnderlined( childValue.GetBool() );
     }
 
-    thisValue << font;
+    wxVariant newVariant;
+    newVariant << font;
+    return newVariant;
 }
 
 /*