dwrite: Reset calculated text height before updating it.

This commit is contained in:
Nikolay Sivov 2015-07-03 11:01:12 +03:00 committed by Alexandre Julliard
parent ed54767030
commit 8b566b1da7
1 changed files with 1 additions and 0 deletions

View File

@ -1215,6 +1215,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
layout->metrics.left = layout->metrics.top = 0.0; layout->metrics.left = layout->metrics.top = 0.0;
layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */ layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */
layout->metrics.lineCount = layout->line_count; layout->metrics.lineCount = layout->line_count;
layout->metrics.height = 0.0;
/* 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);