mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 22:51:58 +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
62416132ca
commit
b8e4abd243
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