[escher/src/text_area] Add char limit in text_area line

Change-Id: I9284936f0202d788edc785aa3f7c82b45ab34cf5
This commit is contained in:
Hugo Saint-Vignes
2020-09-03 17:19:59 +02:00
committed by Émilie Feral
parent 51002066e9
commit b92c819ea2
8 changed files with 122 additions and 13 deletions

View File

@@ -30,6 +30,7 @@ KDSize KDFont::stringSizeUntil(const char * text, const char * limit) const {
currentStringPosition = decoder.stringPosition();
codePoint = decoder.nextCodePoint();
}
assert(stringSize.width() >= 0 && stringSize.height() >= 0);
return stringSize;
}