From: Włodzimierz Skiba Date: Sun, 10 Dec 2006 10:47:44 +0000 (+0000) Subject: Warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8a8e9df88a2983992b1588f8b6de8c05dcdf24f7?ds=inline Warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextstyles.cpp b/src/richtext/richtextstyles.cpp index 1a0765951b..da627387e2 100644 --- a/src/richtext/richtextstyles.cpp +++ b/src/richtext/richtextstyles.cpp @@ -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]);