Nikolay Sivov : dwrite: Fix number of clusters effective run is built on.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 29 08:12:10 CDT 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Jun 29 12:51:43 2015 +0300

dwrite: Fix number of clusters effective run is built on.

---

 dlls/dwrite/layout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 2fe1c41..9f3b9c4 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -1131,7 +1131,7 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
                 last_cluster = i ? i - 1 : i;
 
             if (i >= start) {
-                hr = layout_add_effective_run(layout, run, start, i - start + 1, line, origin_x, s[0]);
+                hr = layout_add_effective_run(layout, run, start, last_cluster - start + 1, line, origin_x, s[0]);
                 if (FAILED(hr))
                     return hr;
                 /* we don't need to update origin for next run as we're going to wrap */




More information about the wine-cvs mailing list