diff --git a/mozilla/editor/libeditor/base/nsSelectionState.cpp b/mozilla/editor/libeditor/base/nsSelectionState.cpp index 003c8090e16..297ff476e86 100644 --- a/mozilla/editor/libeditor/base/nsSelectionState.cpp +++ b/mozilla/editor/libeditor/base/nsSelectionState.cpp @@ -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))) {