Bug 106509: SaveSelection() doesn't delete entries from range correctly;
the test was backwards and never executed. r=jfrancis, sr=kin git-svn-id: svn://10.0.0.236/trunk@106969 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -80,7 +80,7 @@ nsSelectionState::SaveSelection(nsISelection *aSel)
|
||||
}
|
||||
|
||||
// else if we have too many, delete them
|
||||
else if (rangeCount>arrayCount)
|
||||
else if (arrayCount>rangeCount)
|
||||
{
|
||||
while ((item = (nsRangeStore*)mArray.ElementAt(rangeCount)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user