]> git.saurik.com Git - wxWidgets.git/blobdiff - src/richtext/richtextstyles.cpp
update the popup menu item when it's [un]checked too, as it already happens for the...
[wxWidgets.git] / src / richtext / richtextstyles.cpp
index 1a0765951b9428610f05561c7a02ba3b30a0b172..da627387e28dcad805ca919f14a78db84ccb9f3f 100644 (file)
@@ -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]);