Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-20 13:23:37 +03:00
parent db03d6d860
commit b2bedf905e

View file

@ -31,7 +31,9 @@ internal class BoundCounter(
}
fun addNextChar() {
string += text[charPosition(string.count())]
val nextIndex = charPosition(string.count())
if (nextIndex < 0 || nextIndex >= text.length) return
string += text[nextIndex]
width += nextCharWidth()
_nextCharWidth = null
}