usp10: Correct issues with LTR logclust indexing after Multiple substitution.

This commit is contained in:
Aric Stewart 2011-12-05 09:50:10 -06:00 committed by Alexandre Julliard
parent eed756c8dd
commit 6673694847
1 changed files with 6 additions and 2 deletions

View File

@ -1360,9 +1360,13 @@ static void UpdateClusters(int nextIndex, int changeCount, int write_dir, int ch
int replacing_glyph = -1;
int changed = 0;
if (changeCount > 0)
target_glyph = nextIndex - ((changeCount+1)*write_dir);
{
if (write_dir > 0)
target_glyph = nextIndex - changeCount;
else
target_glyph = nextIndex + (changeCount + 1);
}
seeking_glyph = target_glyph;