Interchanged linearBreak and fillBreak

This commit is contained in:
waldemar%netscape.com 2000-05-12 03:43:35 +00:00
Родитель 587ac2dd37
Коммит c17f899a83
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -2212,12 +2212,12 @@ bool JS::PrettyPrinter::reduceLeftActiveItems(uint32 rightOffset)
case Item::linearBreak:
// Exceptions may be thrown below, but only after updating the PrettyPrinter.
outputBreak(lastBreak == lineNum && outputPos + leftItem->totalLength <= lineWidth, length);
outputBreak(savedBlocks.back().fits, length);
break;
case Item::fillBreak:
// Exceptions may be thrown below, but only after updating the PrettyPrinter.
outputBreak(savedBlocks.back().fits, length);
outputBreak(lastBreak == lineNum && outputPos + leftItem->totalLength <= lineWidth, length);
break;
}
} catch (...) {

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

@ -2212,12 +2212,12 @@ bool JS::PrettyPrinter::reduceLeftActiveItems(uint32 rightOffset)
case Item::linearBreak:
// Exceptions may be thrown below, but only after updating the PrettyPrinter.
outputBreak(lastBreak == lineNum && outputPos + leftItem->totalLength <= lineWidth, length);
outputBreak(savedBlocks.back().fits, length);
break;
case Item::fillBreak:
// Exceptions may be thrown below, but only after updating the PrettyPrinter.
outputBreak(savedBlocks.back().fits, length);
outputBreak(lastBreak == lineNum && outputPos + leftItem->totalLength <= lineWidth, length);
break;
}
} catch (...) {