Nikolay Sivov : dwrite: Remove existing effective runs before evaluating them again.

Alexandre Julliard julliard at winehq.org
Thu Jan 26 14:53:13 CST 2017


Module: wine
Branch: master
Commit: e9ff71f62beb4841700b1d35185783df9d776354
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e9ff71f62beb4841700b1d35185783df9d776354

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Jan 26 07:41:47 2017 +0300

dwrite: Remove existing effective runs before evaluating them again.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dwrite/layout.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 706ed4e..7ef050e 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;




More information about the wine-cvs mailing list