Deletion of discontiguous selection in history doesn't work properly (108302). r=hewitt sr=ben

This commit is contained in:
blakeross%telocity.com 2001-12-06 03:20:51 +00:00
Родитель 4e3558286e
Коммит 7f7c1c711c
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -87,9 +87,9 @@ function nsOutlinerController_copy()
var min = new Object(); var min = new Object();
var max = new Object(); var max = new Object();
for (var i = 0; i < rangeCount; ++i) { for (var i = rangeCount - 1; i >= 0; --i) {
this.getOutlinerSelection().getRangeAt(i, min, max); this.getOutlinerSelection().getRangeAt(i, min, max);
for (var k = min.value; k <= max.value; ++k) { for (var k = max.value; k >= min.value; --k) {
// If one of the selected items is // If one of the selected items is
// a container, ignore it. // a container, ignore it.
if (isContainer(this.getOutliner(), k)) if (isContainer(this.getOutliner(), k))
@ -154,7 +154,7 @@ function nsOutlinerController_delete()
var max = new Object(); var max = new Object();
var dirty = false; var dirty = false;
for (var i = 0; i < rangeCount; ++i) { for (var i = rangeCount - 1; i >= 0; --i) {
this.getOutlinerSelection().getRangeAt(i, min, max); this.getOutlinerSelection().getRangeAt(i, min, max);
for (var k = max.value; k >= min.value; --k) { for (var k = max.value; k >= min.value; --k) {
var url = this.getOutlinerView().getCellText(k, "URL"); var url = this.getOutlinerView().getCellText(k, "URL");