]> git.saurik.com Git - wxWidgets.git/commitdiff
remove useless comparison of unsigned value with 0
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:31:37 +0000 (23:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Nov 2008 23:31:37 +0000 (23:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/advprops.cpp

index c93ca5fdcf4051e8c68a814c96071eab17144182..5c8b122c090fba45e57d685b8600b47dc82b6e91 100644 (file)
@@ -1237,7 +1237,7 @@ bool wxSystemColourProperty::StringToValue( wxVariant& value, const wxString& te
             if ( res && GetIndex() >= 0 )
             {
                 val.m_type = GetIndex();
-                if ( val.m_type >= 0 && val.m_type < m_choices.GetCount() )
+                if ( val.m_type < m_choices.GetCount() )
                     val.m_type = m_choices[val.m_type].GetValue();
 
                 // Get proper colour for type.