From: subhransu mohanty Date: Fri, 16 Nov 2018 03:01:18 +0000 (+0900) Subject: lottie: Use the max float value for gap to generate only 1 segment. X-Git-Tag: submit/tizen/20181129.071502~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82c9493adf4e68c60be8d62bd0e058b92cce01af;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: Use the max float value for gap to generate only 1 segment. Change-Id: Ifa8a2688a49f1675567ec5e11869c67d78a83f90 --- diff --git a/src/vector/vpathmesure.cpp b/src/vector/vpathmesure.cpp index d588dc6..81a4ebd 100644 --- a/src/vector/vpathmesure.cpp +++ b/src/vector/vpathmesure.cpp @@ -1,6 +1,7 @@ #include "vpathmesure.h" #include "vbezier.h" #include "vdasher.h" +#include V_BEGIN_NAMESPACE @@ -9,7 +10,7 @@ VPath oneSegment(float start, float end, const VPath & path) if (start > end) { std::swap(start, end); } - float array[5] = {0.0f, start, end - start, 1000, 0.0f}; + float array[5] = {0.0f, start, end - start, std::numeric_limits::max(), 0.0f}; VDasher dasher(array, 5); return dasher.dashed(path); }