b=35749 Fixed Purify warning

This commit is contained in:
troy%netscape.com 2000-04-13 20:55:40 +00:00
parent 5dff88a180
commit 41bb5435ed
2 changed files with 2 additions and 2 deletions

View File

@ -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--;
}

View File

@ -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--;
}