Commit 3976cc45 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Update current line count when adding metrics for new line.

parent 9249f393
...@@ -1033,6 +1033,7 @@ static HRESULT layout_set_line_metrics(struct dwrite_textlayout *layout, DWRITE_ ...@@ -1033,6 +1033,7 @@ static HRESULT layout_set_line_metrics(struct dwrite_textlayout *layout, DWRITE_
} }
layout->lines[*line] = *metrics; layout->lines[*line] = *metrics;
layout->line_count += 1;
*line += 1; *line += 1;
return S_OK; return S_OK;
} }
...@@ -1198,8 +1199,6 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout) ...@@ -1198,8 +1199,6 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
textpos += layout->clustermetrics[i].length; textpos += layout->clustermetrics[i].length;
} }
layout->line_count = line;
/* Now all line info is here, update effective runs positions in flow direction */ /* Now all line info is here, update effective runs positions in flow direction */
erun = layout_get_next_erun(layout, NULL); erun = layout_get_next_erun(layout, NULL);
inrun = layout_get_next_inline_run(layout, NULL); inrun = layout_get_next_inline_run(layout, NULL);
......
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