]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct example of handling property values changes in the docs.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Oct 2012 14:01:54 +0000 (14:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 16 Oct 2012 14:01:54 +0000 (14:01 +0000)
"." was incorrectly used with a pointer, replace it with a "->".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/doxygen/overviews/propgrid.h

index 4da57a534f591d6788d7b0b19e2d3c6cd321dc85..7cb6692a71c44cfe4de91b15fb2c3f459ca55bb0 100644 (file)
@@ -471,9 +471,9 @@ void MyWindowClass::OnPropertyGridChanged(wxPropertyGridEvent& event)
         return;
 
     // Handle changes in values, as needed
-    if ( property.GetName() == "MyStringProperty" )
+    if ( property->GetName() == "MyStringProperty" )
         OnMyStringPropertyChanged(value.As<wxString>());
-    else if ( property.GetName() == "MyColourProperty" )
+    else if ( property->GetName() == "MyColourProperty" )
         OnMyColourPropertyChanged(value.As<wxColour>());
 }