Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -509,7 +509,7 @@ wxRichTextStyleDefinition* wxRichTextStyleListBox::GetStyle(size_t i) const
|
||||
if (!GetStyleSheet())
|
||||
return NULL;
|
||||
|
||||
if (i >= m_styleNames.GetCount() || i < 0)
|
||||
if (i >= m_styleNames.GetCount() /* || i < 0 */ )
|
||||
return NULL;
|
||||
|
||||
return GetStyleSheet()->FindStyle(m_styleNames[i]);
|
||||
|
Reference in New Issue
Block a user