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:
parent
960cef8307
commit
9c238307cc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue