From 66736948475bf909cfb3bdfc9ffa428d61909f65 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 5 Dec 2011 09:50:10 -0600 Subject: [PATCH] usp10: Correct issues with LTR logclust indexing after Multiple substitution. --- dlls/usp10/shape.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/usp10/shape.c b/dlls/usp10/shape.c index 04f0ff4db18..2189b92471a 100644 --- a/dlls/usp10/shape.c +++ b/dlls/usp10/shape.c @@ -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; -- 2.11.4.GIT