From c7e8f0c4763721efbafacd28b32b5acf4e0b223a Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 9 May 2024 14:43:44 +0900 Subject: [PATCH] lottie: code refactoring. text tracking is an optional property. it's good to initialize it with 0. --- src/loaders/lottie/tvgLottieProperty.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/lottie/tvgLottieProperty.h b/src/loaders/lottie/tvgLottieProperty.h index 26a495eb..34ac4310 100644 --- a/src/loaders/lottie/tvgLottieProperty.h +++ b/src/loaders/lottie/tvgLottieProperty.h @@ -75,7 +75,7 @@ struct TextDocument } stroke; char* name = nullptr; float size; - float tracking; + float tracking = 0.0f; uint8_t justify; };