gdi32: Fix 3 tiny bugs in bidi.

This commit is contained in:
Maarten Lankhorst 2007-09-28 16:22:15 +02:00 committed by Alexandre Julliard
parent 6b2a6a2bcf
commit 10834ee5c7
1 changed files with 3 additions and 3 deletions

View File

@ -1091,13 +1091,13 @@ BOOL BIDI_Reorder(
classify(lpOutString + done, chartype, uCount - done);
/* limit text to first block */
i = resolveParagraphs(chartype, uCount - done);
for (j = 0; j < i - 1; ++j)
for (j = 0; j < i; ++j)
switch(chartype[j])
{
case B:
case S:
case WS:
case ON: chartype[i] = N;
case ON: chartype[j] = N;
default: continue;
}
@ -1113,7 +1113,7 @@ BOOL BIDI_Reorder(
baselevel = 0;
break;
}
else if (chartype[j] == R)
else if (chartype[j] == R || chartype[j] == AL)
{
baselevel = 1;
break;