From: subhransu mohanty Date: Wed, 5 Dec 2018 08:08:05 +0000 (+0900) Subject: lottie: Fix the issue when dash length is 0. X-Git-Tag: submit/tizen/20181211.054046~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F194518%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: Fix the issue when dash length is 0. AE can draw zero length dash. Change-Id: I286e0a5503952f7e4ee38e3cc05c8ac3392f7579 --- diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index beea1b8..64d15fa 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -999,6 +999,9 @@ void LOTStrokeItem::updateRenderNode() mDrawable->setStrokeInfo(mCap, mJoin, mMiterLimit, mWidth * scale); if (mDashArraySize) { + /* AE draw the dash even if dash value is 0 */ + if (vCompare(mDashArray[0], 0.0f)) mDashArray[0]= 0.2; + for (int i = 0 ; i < mDashArraySize ; i++) mDashArray[i] *= scale; mDrawable->setDashInfo(mDashArray, mDashArraySize);