]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/props.cpp
omitting assert that makes no sense for OpenVMS
[wxWidgets.git] / src / propgrid / props.cpp
index 4bc4d1c0862f817d2bde6400ac4ebf9aa1ed7c78..4a5442bf9c9cd6acdf739365c66eb3d6cbb6f90a 100644 (file)
@@ -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;
     }