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

Commit ba3634f3 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Fix for AOOB in MeasuredText

Bug 5707593

Change-Id: I3c21343b2938119d7ae9d7892733dc83a209c991
parent a6b8fe1c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ class MeasuredText {
            for (int i = 0; i < spans.length; i++) {
                int startInPara = spanned.getSpanStart(spans[i]) - start;
                int endInPara = spanned.getSpanEnd(spans[i]) - start;
                // The span interval may be larger and must be restricted to [start, end[
                if (startInPara < 0) startInPara = 0;
                if (endInPara > len) endInPara = len;
                for (int j = startInPara; j < endInPara; j++) {
                    mChars[j] = '\uFFFC';
                }