mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 14:41:50 +00:00
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:
parent
ac384332fe
commit
09313ae307
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue