From: Vadim Zeitlin Date: Tue, 16 Oct 2012 14:01:54 +0000 (+0000) Subject: Correct example of handling property values changes in the docs. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8b5cec2580b423c9c335b2e8222a44561628235d Correct example of handling property values changes in the docs. "." 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 --- diff --git a/docs/doxygen/overviews/propgrid.h b/docs/doxygen/overviews/propgrid.h index 4da57a534f..7cb6692a71 100644 --- a/docs/doxygen/overviews/propgrid.h +++ b/docs/doxygen/overviews/propgrid.h @@ -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()); - else if ( property.GetName() == "MyColourProperty" ) + else if ( property->GetName() == "MyColourProperty" ) OnMyColourPropertyChanged(value.As()); }