From 7d4a5215dd2dcde7bc14de13a4d7040511508580 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Fri, 2 May 2025 06:09:45 +0200 Subject: [PATCH] lottie: fix stroke join for offset path The incorrect line join used for OffsetPath was caused by changes to the StrokeJoin enum values in commit 34d731fa94bbc5b1b70415eea37b78acdb6405de. During those changes, the line join value for OffsetPath was mistakenly not updated. --- src/loaders/lottie/tvgLottieParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loaders/lottie/tvgLottieParser.cpp b/src/loaders/lottie/tvgLottieParser.cpp index 04e06f23..f82d738d 100644 --- a/src/loaders/lottie/tvgLottieParser.cpp +++ b/src/loaders/lottie/tvgLottieParser.cpp @@ -840,7 +840,7 @@ LottieOffsetPath* LottieParser::parseOffsetPath() while (auto key = nextObjectKey()) { if (parseCommon(offsetPath, key)) continue; else if (KEY_AS("a")) parseProperty(offsetPath->offset); - else if (KEY_AS("lj")) offsetPath->join = (StrokeJoin) getInt(); + else if (KEY_AS("lj")) offsetPath->join = (StrokeJoin) (getInt() - 1); else if (KEY_AS("ml")) parseProperty(offsetPath->miterLimit); else skip(); }