This commit is contained in:
troy%netscape.com 2000-04-13 20:55:40 +00:00
Родитель 5dff88a180
Коммит 41bb5435ed
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2353,7 +2353,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext,
// See if we should skip leading whitespace
if (0 != (mState & TEXT_SKIP_LEADING_WS)) {
while (XP_IS_SPACE(*text) && (textLength > 0)) {
while ((textLength > 0) && XP_IS_SPACE(*text)) {
text++;
textLength--;
}

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

@ -2353,7 +2353,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext,
// See if we should skip leading whitespace
if (0 != (mState & TEXT_SKIP_LEADING_WS)) {
while (XP_IS_SPACE(*text) && (textLength > 0)) {
while ((textLength > 0) && XP_IS_SPACE(*text)) {
text++;
textLength--;
}