dwrite: Remove existing effective runs before evaluating them again.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2017-01-26 07:41:47 +03:00 committed by Alexandre Julliard
parent c32a19f198
commit e9ff71f62b
1 changed files with 2 additions and 0 deletions

View File

@ -1740,6 +1740,8 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
if (!(layout->recompute & RECOMPUTE_LINES))
return S_OK;
free_layout_eruns(layout);
hr = layout_compute(layout);
if (FAILED(hr))
return hr;