From 8b566b1da71a412fe58c3cc1988d610c2aba5f2d Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 3 Jul 2015 11:01:12 +0300 Subject: [PATCH] dwrite: Reset calculated text height before updating it. --- dlls/dwrite/layout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c index fbd7df08b2d..980eff59d58 100644 --- a/dlls/dwrite/layout.c +++ b/dlls/dwrite/layout.c @@ -1215,6 +1215,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout) layout->metrics.left = layout->metrics.top = 0.0; layout->metrics.maxBidiReorderingDepth = 1; /* FIXME */ layout->metrics.lineCount = layout->line_count; + layout->metrics.height = 0.0; /* Now all line info is here, update effective runs positions in flow direction */ erun = layout_get_next_erun(layout, NULL);