Fix topcrash when selection changes in an unusual way b=415601 r+sr=dmose

This commit is contained in:
neil%parkwaycc.co.uk 2008-04-16 13:12:10 +00:00
Родитель 4f2f045052
Коммит 4dc1feb955
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1017,11 +1017,14 @@ NS_IMETHODIMP nsMsgDBView::SelectionChanged()
PRUint32 numSelected = 0;
#ifdef DEBUG
GetNumSelected(&numSelected);
#endif
nsMsgViewIndexArray selection;
GetSelectedIndices(selection);
nsMsgViewIndex *indices = selection.Elements();
NS_ASSERTION(numSelected == selection.Length(), "selected indices is not equal to num of msg selected!!!");
numSelected = selection.Length();
PRBool commandsNeedDisablingBecauseOfSelection = PR_FALSE;