Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a174dda authored by Raph Levien's avatar Raph Levien
Browse files

Clear hyphenEdit from Layout's paint

The paint of a layout may be reused with other things (in particular,
it can be passed to a BoringLayout), so make sure the hyphenEdit is
zeroed out after use.

Change-Id: If58c5588af9642c3ba827acefea7895e814daab9
parent f56bd0e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ public abstract class Layout {
                tl.set(paint, buf, start, end, dir, directions, hasTabOrEmoji, tabStops);
                tl.draw(canvas, x, ltop, lbaseline, lbottom);
            }
            paint.setHyphenEdit(0);
        }

        TextLine.recycle(tl);