aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativepath.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativepath.cpp b/src/declarative/util/qdeclarativepath.cpp
index f923413e29..05d56e0c1b 100644
--- a/src/declarative/util/qdeclarativepath.cpp
+++ b/src/declarative/util/qdeclarativepath.cpp
@@ -608,7 +608,8 @@ QPointF QDeclarativePath::backwardsPointAt(const QPainterPath &path, const qreal
Q_ASSERT(!(currElement < firstElement));
currBez = nextBezier(path, &currElement, &bezLength, true /*reverse*/);
currLength = prevLength;
- epc = (currLength - bezLength) / pathLength;
+ prevLength = currLength - bezLength;
+ epc = prevLength / pathLength;
}
prevBez.element = currElement;
prevBez.bezLength = bezLength;