From: Youngbok Shin Date: Tue, 28 Aug 2018 06:08:40 +0000 (+0900) Subject: lottie/vdasher: fix multiple dashes issue on multiple pathes X-Git-Tag: submit/tizen/20180917.042405~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F187734%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git 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 --- 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;