Bug 540252 - WARNING: goofy tree selection state: two ranges are adjacent!: 'endFirstRange == startRange'. Fix flipped equality condition. r+sr=Standard8

This commit is contained in:
Siddharth Agarwal 2010-02-09 12:23:39 +05:30
Родитель ecadbfe75c
Коммит 7e8b576520
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -6783,8 +6783,8 @@ nsMsgDBView::GetMsgToSelectAfterDelete(nsMsgViewIndex *msgToSelectAfterDelete)
// If the tree selection is goofy (eg adjacent or overlapping ranges),
// complain about it, but don't try and cope. Just live with the fact
// that one of the deleted messages is going to end up selected.
NS_WARN_IF_FALSE(endFirstRange == startRange,
"goofy tree selection state: two ranges are adjacent!");
NS_WARN_IF_FALSE(endFirstRange != startRange,
"goofy tree selection state: two ranges are adjacent!");
}
*msgToSelectAfterDelete = NS_MIN(*msgToSelectAfterDelete,
(nsMsgViewIndex)startRange);