Commit 571ffaf3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/layout: Fix invalid index access to cluster array.

parent 40c74cf3
......@@ -1853,6 +1853,9 @@ static void layout_add_line(struct dwrite_textlayout *layout, UINT32 first_clust
metrics.trailingWhitespaceLength += cluster->length;
trailingspacewidth += cluster->width;
if (index == 0)
break;
}
/* Line metrics length includes trailing whitespace length too */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment