fix regression crash in MoveThreadAt, r/sr=standard8, 492475
This commit is contained in:
Родитель
92a459ae77
Коммит
50aa488d44
|
@ -570,10 +570,10 @@ void nsMsgSearchDBView::MoveThreadAt(nsMsgViewIndex threadIndex)
|
|||
PRInt32 selectionCount;
|
||||
PRInt32 currentIndex;
|
||||
PRBool hasSelection = mTree && mTreeSelection &&
|
||||
(NS_SUCCEEDED(mTreeSelection->GetCurrentIndex(¤tIndex)) &&
|
||||
((NS_SUCCEEDED(mTreeSelection->GetCurrentIndex(¤tIndex)) &&
|
||||
currentIndex >= 0 && currentIndex < GetSize()) ||
|
||||
(NS_SUCCEEDED(mTreeSelection->GetRangeCount(&selectionCount)) &&
|
||||
selectionCount > 0);
|
||||
(NS_SUCCEEDED(mTreeSelection->GetRangeCount(&selectionCount)) &&
|
||||
selectionCount > 0));
|
||||
|
||||
|
||||
if (hasSelection)
|
||||
|
|
|
@ -763,10 +763,10 @@ void nsMsgThreadedDBView::MoveThreadAt(nsMsgViewIndex threadIndex)
|
|||
PRInt32 selectionCount;
|
||||
PRInt32 currentIndex;
|
||||
PRBool hasSelection = mTree && mTreeSelection &&
|
||||
(NS_SUCCEEDED(mTreeSelection->GetCurrentIndex(¤tIndex)) &&
|
||||
((NS_SUCCEEDED(mTreeSelection->GetCurrentIndex(¤tIndex)) &&
|
||||
currentIndex >= 0 && currentIndex < GetSize()) ||
|
||||
(NS_SUCCEEDED(mTreeSelection->GetRangeCount(&selectionCount)) &&
|
||||
selectionCount > 0);
|
||||
(NS_SUCCEEDED(mTreeSelection->GetRangeCount(&selectionCount)) &&
|
||||
selectionCount > 0));
|
||||
if (hasSelection)
|
||||
SaveAndClearSelection(&preservedKey, preservedSelection);
|
||||
PRUint32 saveFlags = m_flags[threadIndex];
|
||||
|
|
Загрузка…
Ссылка в новой задаче