lottie: fix text update

The occurrence of a 'carriage return' (13) or 'end of text' (3)
caused the skipping of the next character check, immediately
searching for it in the list of available characters.
If the next character was also 13 or 3, it led to incorrect
interpretation; however, if it was the last character in the
sequence, a crash occurred.
This commit is contained in:
Mira Grudzinska 2024-08-20 12:36:14 +02:00 committed by Hermet Park
parent ac384332fe
commit 09313ae307

View file

@ -1055,6 +1055,7 @@ void LottieBuilder::updateText(LottieLayer* layer, float frameNo)
scene = Scene::gen();
cursor.x = 0.0f;
cursor.y = ++line * (doc.height / scale);
continue;
}
//find the glyph
bool found = false;