From f0515f36b89eb31710b553ac69ff89a08f231707 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Thu, 23 Aug 2018 13:13:08 +0900 Subject: [PATCH] lottie/vector: return correct number from segments() api. Change-Id: Ifb90d0f7567ba0737f70c7b7abfc467e94004780 --- src/vector/vpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/vpath.cpp b/src/vector/vpath.cpp index f12f651..085094c 100644 --- a/src/vector/vpath.cpp +++ b/src/vector/vpath.cpp @@ -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) -- 2.34.1