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

Commit ed2eea1b authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix crash when ellipsize="start" is applied to short line.

Bug: 19833548
Change-Id: I05a36f00f5c7aa6f0ce1993337585f6cfc64649a
parent 7a11a0e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ public class StaticLayout extends Layout {
                float sum = 0;
                int i;

                for (i = len; i >= 0; i--) {
                for (i = len; i > 0; i--) {
                    float w = widths[i - 1 + lineStart - widthStart];

                    if (w + sum + ellipsisWidth > avail) {