mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
8c4f3e7eec
commit
54b33fcd28
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue