dwrite: Get rid of assignment to self.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-02-03 15:20:27 +03:00 committed by Alexandre Julliard
parent 960cef8307
commit 9c238307cc
1 changed files with 3 additions and 5 deletions

View File

@ -2002,12 +2002,10 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
} }
i = min(i, layout->cluster_count - 1); i = min(i, layout->cluster_count - 1);
if (overflow) { /* Ignore if overflown on whitespace */
/* Overflown on whitespace, ignore it */ if (overflow && !(layout->clustermetrics[i].isWhitespace && layout_can_wrap_after(layout, i))) {
if (layout->clustermetrics[i].isWhitespace && layout_can_wrap_after(layout, i))
i = i;
/* Use most recently found breaking point */ /* Use most recently found breaking point */
else if (last_breaking_point != ~0u) { if (last_breaking_point != ~0u) {
i = last_breaking_point; i = last_breaking_point;
last_breaking_point = ~0u; last_breaking_point = ~0u;
} }