Commit 9c54176f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 3976cc45
...@@ -1131,7 +1131,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout) ...@@ -1131,7 +1131,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
last_cluster = i ? i - 1 : i; last_cluster = i ? i - 1 : i;
if (i >= start) { 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)) if (FAILED(hr))
return hr; return hr;
/* we don't need to update origin for next run as we're going to wrap */ /* we don't need to update origin for next run as we're going to wrap */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment