Module: wine Branch: master Commit: 91df67df0c1804c81e242e5281f1835e06f0fbee URL: http://source.winehq.org/git/wine.git/?a=commit;h=91df67df0c1804c81e242e5281...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Jan 24 18:10:57 2016 +0300
dwrite: Cluster text position is relative to initial run.
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 9109924..b5f6aa8 100644 --- a/dlls/dwrite/layout.c +++ b/dlls/dwrite/layout.c @@ -601,7 +601,7 @@ static inline void init_cluster_metrics(const struct dwrite_textlayout *layout, } metrics->length = length;
- position = stop_position; + position = run->descr.textPosition + stop_position; if (stop_glyph == run->glyphcount) breakcondition = get_effective_breakpoint(layout, stop_position).breakConditionAfter; else {