From: subhransu mohanty Date: Wed, 5 Dec 2018 09:37:44 +0000 (+0900) Subject: lottie: Test for zero dash length after applying scale factor. X-Git-Tag: accepted/tizen/unified/20181213.142320~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebc6577274998c5d73bb8bdce1f380eadbcbba54;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: Test for zero dash length after applying scale factor. the scale factor can be less which will make the dash to 0 again. Change-Id: I2aacaa342a09f010835c23beb7c2e476c2b11825 --- diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index 64d15fa..766a174 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -999,11 +999,12 @@ 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; + + /* AE draw the dash even if dash value is 0 */ + if (vCompare(mDashArray[0], 0.0f)) mDashArray[0]= 0.1; + mDrawable->setDashInfo(mDashArray, mDashArraySize); } }