aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/declarative/animation/pathinterpolator/pathinterpolator.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/animation/pathinterpolator/pathinterpolator.qml b/examples/declarative/animation/pathinterpolator/pathinterpolator.qml
index e49ecb1fd4..67a34ce582 100644
--- a/examples/declarative/animation/pathinterpolator/pathinterpolator.qml
+++ b/examples/declarative/animation/pathinterpolator/pathinterpolator.qml
@@ -51,6 +51,7 @@ Rectangle {
smooth: true
onPaint: {
+ context.clearRect(0, 0, width, height)
context.strokeStyle = "black"
context.path = motionPath.path
context.stroke()