If we can't find anywhere from which to extend a range, give up and just select the end item b=372591 r=enn sr=roc

This commit is contained in:
neil%parkwaycc.co.uk 2007-03-07 13:25:13 +00:00
Родитель 125cf0e0a1
Коммит 604ebd0758
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -445,7 +445,10 @@ NS_IMETHODIMP nsTreeSelection::RangedSelect(PRInt32 aStartIndex, PRInt32 aEndInd
if (aStartIndex == -1) {
if (mShiftSelectPivot != -1)
aStartIndex = mShiftSelectPivot;
else aStartIndex = mCurrentIndex;
else if (mCurrentIndex != -1)
aStartIndex = mCurrentIndex;
else
aStartIndex = aEndIndex;
}
mShiftSelectPivot = aStartIndex;