Fix crash issue for path animation and path interpulator
authorCharles Yin <charles.yin@nokia.com>
Thu, 22 Mar 2012 04:07:28 +0000 (14:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Mar 2012 04:19:35 +0000 (05:19 +0100)
commitb63ce68f316c91b0a3107d3d20e160628f5cefef
tree89aaa6345d595097a4975e4455a7dd65e02ed1be
parentc913351c9d6e3181cdddcc851e9d80cd7689fe93
Fix crash issue for path animation and path interpulator

When set progress value out of [0,1], path animation and
path interpulator should make sure the value be modified
in the valid value range, otherwise the QQuickPath::backwardsPointAt()
will crash.

Task-number: QTBUG-24308
Change-Id: Icd6e9165c9f844ddb8ec84c229eac4db5246a749
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquickitemanimation.cpp
src/quick/util/qquickpath.cpp
src/quick/util/qquickpathinterpolator.cpp
tests/auto/quick/qquickanimations/data/pathAnimationInOutBackCrash.qml [new file with mode: 0644]
tests/auto/quick/qquickanimations/tst_qquickanimations.cpp