mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
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:
parent
40453a4986
commit
7d4a5215dd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue