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
This commit is contained in:
Vadim Zeitlin
2012-10-16 14:01:54 +00:00
parent f00f01b3bf
commit 8b5cec2580

View 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>());
}