Fixed bug: wxEditEnumProperty's initial string value could not be outside the list of choices.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1034,9 +1034,7 @@ bool wxEnumProperty::ValueFromString_( wxVariant& value, const wxString& text, i
|
||||
|
||||
// If text not any of the choices, store as text instead
|
||||
// (but only if we are wxEditEnumProperty)
|
||||
if ( useIndex == -1 &&
|
||||
(value.GetType() != wxPG_VARIANT_TYPE_STRING || (m_value.GetString() != text)) &&
|
||||
isEdit )
|
||||
if ( useIndex == -1 && isEdit )
|
||||
{
|
||||
asText = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user