From 171165be39044266e1bfc95e837fac6ae87ae6f2 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Tue, 28 Aug 2018 15:08:40 +0900 Subject: [PATCH] lottie/vdasher: fix multiple dashes issue on multiple pathes mIndex is for handling multiple dashes. If a previous path ends at mIndex > 0, it should be initialized as 0 when it starts job for next path. The previous work shouldn't affect the next path. Change-Id: Iab2b00fe456f7195acd7e086f55758ad7d2a7bf6 --- src/vector/vdasher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vector/vdasher.cpp b/src/vector/vdasher.cpp index 095738b..508b767 100644 --- a/src/vector/vdasher.cpp +++ b/src/vector/vdasher.cpp @@ -72,6 +72,7 @@ void VDasher::moveTo(const VPointF &p) mDiscard = false; mStartNewSegment = true; mCurPt = p; + mIndex = 0; if (!vCompare(mDashOffset, 0.0f)) { float totalLength = 0.0; -- 2.7.4