From: Jaakko Salli Date: Tue, 8 Sep 2009 14:03:30 +0000 (+0000) Subject: Fixed a warning generated by GCC 4.4.0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/63e0eeb581d65034c4861ac10d4a419ddea7386b Fixed a warning generated by GCC 4.4.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index 0fb0e23b44..fde73ced09 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -958,11 +958,17 @@ void wxEnumProperty::OnSetValue() wxString variantType = m_value.GetType(); if ( variantType == wxPG_VARIANT_TYPE_LONG ) + { ValueFromInt_( m_value, m_value.GetLong(), wxPG_FULL_VALUE ); + } else if ( variantType == wxPG_VARIANT_TYPE_STRING ) + { ValueFromString_( m_value, m_value.GetString(), 0 ); + } else + { wxFAIL; + } if ( ms_nextIndex != -2 ) {