lottie: safety++

Prevents a crash when the font family in the text document
does not match any font in the provided font list.
This commit is contained in:
Mira Grudzinska 2025-04-10 20:55:23 +02:00 committed by Hermet Park
parent 8c4f3e7eec
commit 54b33fcd28

View file

@ -474,7 +474,7 @@ struct LottieText : LottieObject, LottieRenderPooler<tvg::Shape>
} }
LottieTextDoc doc; LottieTextDoc doc;
LottieFont* font; LottieFont* font = nullptr;
LottieTextFollowPath* followPath = nullptr; LottieTextFollowPath* followPath = nullptr;
Array<LottieTextRange*> ranges; Array<LottieTextRange*> ranges;