diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index e7d4d8e083..9cabc83788 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -1267,7 +1267,7 @@ bool wxSystemColourProperty::IntToValue( wxVariant& variant, int number, int arg int index = number; int type = m_choices.GetValue(index); - if ( type == wxPG_COLOUR_CUSTOM ) + if ( m_choices.GetLabel(index) == _("Custom") ) { if ( !(argFlags & wxPG_PROPERTY_SPECIFIC) ) return QueryColourFromUser(variant);