lottie/vector: return correct number from segments() api. 10/187410/1
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 23 Aug 2018 04:13:08 +0000 (13:13 +0900)
committersubhransu mohanty <sub.mohanty@samsung.com>
Thu, 23 Aug 2018 04:13:08 +0000 (13:13 +0900)
Change-Id: Ifb90d0f7567ba0737f70c7b7abfc467e94004780

src/vector/vpath.cpp

index f12f6511972ad74b5c3161237defb34315fedbc4..085094c530b9a5234ae973b70a32733c6a1538d6 100644 (file)
@@ -118,7 +118,7 @@ void VPath::VPathData::reset()
 
 int VPath::VPathData::segments() const
 {
-    return m_segments + 1;
+    return m_segments;
 }
 
 void VPath::VPathData::reserve(int pts, int elms)