[PATCH 2/5] dwrite: Remove existing effective runs before evaluating them again

Nikolay Sivov nsivov at codeweavers.com
Wed Jan 25 22:41:47 CST 2017


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/dwrite/layout.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 706ed4e1c2..7ef050e6fd 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -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;
-- 
2.11.0




More information about the wine-patches mailing list