diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 6b4290a149..2fb1f66c1b 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -1647,6 +1647,7 @@ public: */ virtual wxString GetValueAsString( int argFlags = 0 ) const; +#if wxPG_COMPATIBILITY_1_4 /** Synonymous to GetValueAsString(). @deprecated Use GetValueAsString() instead. @@ -1654,6 +1655,7 @@ public: @see GetValueAsString() */ wxDEPRECATED( wxString GetValueString( int argFlags = 0 ) const ); +#endif /** Returns wxPGCell of given column. diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index a46e7a5aea..326f5e5155 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1054,10 +1054,12 @@ wxString wxPGProperty::GetValueAsString( int argFlags ) const } } +#if wxPG_COMPATIBILITY_1_4 wxString wxPGProperty::GetValueString( int argFlags ) const { return GetValueAsString(argFlags); } +#endif bool wxPGProperty::IntToValue( wxVariant& variant, int number, int WXUNUSED(argFlags) ) const {