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
34d731fa94. During those
changes, the line join value for OffsetPath was mistakenly
not updated.
This commit is contained in:
Mira Grudzinska 2025-05-02 06:09:45 +02:00 committed by Hermet Park
parent 40453a4986
commit 7d4a5215dd

View file

@ -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();
}