SetTransformedTextIsAscii() should depend on no multibyte text having been detected as well as on LeaveAsAscii(). Bug 333535, r+sr=rbs

This commit is contained in:
smontagu%smontagu.org 2006-10-04 11:40:49 +00:00
Родитель 54ed9e2a50
Коммит bd9f9842af
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -859,7 +859,7 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
// beginning of the buffer
if (aResetTransformBuf) {
mBufferPos = 0;
SetTransformedTextIsAscii(LeaveAsAscii());
SetTransformedTextIsAscii(LeaveAsAscii() && !HasMultibyte());
}
prevBufferPos = mBufferPos;