lottie: Use the max float value for gap to generate only 1 segment. 01/193201/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Fri, 16 Nov 2018 03:01:18 +0000 (12:01 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 19 Nov 2018 06:47:50 +0000 (06:47 +0000)
Change-Id: Ifa8a2688a49f1675567ec5e11869c67d78a83f90

src/vector/vpathmesure.cpp

index d588dc630013b1a4ea36c5ffd3a8ad2bae328474..81a4ebdaa4c8dd02e5c776240ff7c05c6d6d5e4b 100644 (file)
@@ -1,6 +1,7 @@
 #include "vpathmesure.h"
 #include "vbezier.h"
 #include "vdasher.h"
+#include <limits>
 
 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<float>::max(), 0.0f};
     VDasher dasher(array, 5);
     return dasher.dashed(path);
 }