dwrite: Fix clustermap shifting for effective run.

This commit is contained in:
Nikolay Sivov 2015-06-26 12:32:58 +03:00 committed by Alexandre Julliard
parent 872e569744
commit 9148e87291
1 changed files with 1 additions and 1 deletions

View File

@ -972,7 +972,7 @@ static HRESULT layout_add_effective_run(struct dwrite_textlayout *layout, const
/* cluster map needs to be shifted */
for (i = 0; i < length; i++)
run->clustermap[i] = r->u.regular.clustermap[start] - start;
run->clustermap[i] = r->u.regular.clustermap[start + i] - r->u.regular.clustermap[start];
list_add_tail(&layout->eruns, &run->entry);