dwrite: Fix number of clusters effective run is built on.

This commit is contained in:
Nikolay Sivov 2015-06-29 12:51:43 +03:00 committed by Alexandre Julliard
parent 3976cc459d
commit 9c54176f5c
1 changed files with 1 additions and 1 deletions

View File

@ -1131,7 +1131,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
last_cluster = i ? i - 1 : i;
if (i >= start) {
hr = layout_add_effective_run(layout, run, start, i - start + 1, line, origin_x, s[0]);
hr = layout_add_effective_run(layout, run, start, last_cluster - start + 1, line, origin_x, s[0]);
if (FAILED(hr))
return hr;
/* we don't need to update origin for next run as we're going to wrap */