fix filter lossage regression, bug 713429, r=neil
authorDavid Bienvenu <bienvenu@nventure.com>
Tue, 27 Dec 2011 11:14:56 -0800
changeset 10299 07bbbe99496fd8dd5360710abcd771314b867c15
parent 10298 4548f08f3f762969aef55a922c8bc73db71eb5cd
child 10300 378ab7f9d3bb14a77fe77b70fc0801e91ecd976d
push idunknown
push userunknown
push dateunknown
reviewersneil
bugs713429
fix filter lossage regression, bug 713429, r=neil
mailnews/base/search/src/nsMsgFilterList.cpp
--- a/mailnews/base/search/src/nsMsgFilterList.cpp
+++ b/mailnews/base/search/src/nsMsgFilterList.cpp
@@ -963,17 +963,17 @@ nsresult nsMsgFilterList::GetFilterCount
 }
 
 nsresult nsMsgFilterList::GetMsgFilterAt(PRUint32 filterIndex, nsMsgFilter **filter)
 {
   NS_ENSURE_ARG_POINTER(filter);
 
   PRUint32      filterCount;
   m_filters->Count(&filterCount);
-  NS_ENSURE_ARG(! (filterCount >= filterIndex));
+  NS_ENSURE_ARG(filterCount > filterIndex);
   *filter = (nsMsgFilter *) m_filters->ElementAt(filterIndex);
   return NS_OK;
 }
 
 nsresult nsMsgFilterList::GetFilterAt(PRUint32 filterIndex, nsIMsgFilter **filter)
 {
   NS_ENSURE_ARG_POINTER(filter);