Fix one frame missing (#529) 39/281439/1
authorMichal Maciola <71131832+mmaciola@users.noreply.github.com>
Mon, 19 Sep 2022 02:03:23 +0000 (04:03 +0200)
committerjykeon <jykeon@samsung.com>
Mon, 19 Sep 2022 04:59:46 +0000 (13:59 +0900)
commitc693c97cd8441ca3dff30b1715c63749be0c1aa2
tree61774ae7fc7c0d3a87c5336d8a5719c6e39ecf09
parent42c50c2c1a1d9cc01dbf20562f6f2adcd1810aa1
Fix one frame missing (#529)

As mStartFrame and mEndFrame was counted from 0 and totalFrame() was
calculated as a difference, there were always one frame missing and
the animation rescaled. This patch adds one to the total frames count.

issue: #527
Change-Id: I82f7d85ba6f932b2e47a4be68bf91dcc97da5b0a
src/lottie/lottieitem.cpp
src/lottie/lottiemodel.h
src/lottie/lottieparser.cpp