diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/svg/qsvgstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvgstyle.cpp b/src/svg/qsvgstyle.cpp index ae714d7..5448797 100644 --- a/src/svg/qsvgstyle.cpp +++ b/src/svg/qsvgstyle.cpp @@ -694,8 +694,8 @@ void QSvgAnimateTransform::resolveMatrix(const QSvgNode *node) } qreal currentPosition = percentOfAnimation * (m_count - 1); - int startElem = qFloor(currentPosition); int endElem = qCeil(currentPosition); + int startElem = qMax(endElem - 1, 0); switch(m_type) { |