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>
This commit is contained in:
Nikolay Sivov 2016-01-24 18:10:57 +03:00 committed by Alexandre Julliard
parent 4fac292ee8
commit 91df67df0c
1 changed files with 1 additions and 1 deletions

View File

@ -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 {