From 96860e3c9e425730aeb241ad7e1a5392164aea55 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Fri, 3 Feb 2012 09:17:43 +1000 Subject: [PATCH] Fix example to clear rect before painting. Change-Id: Iecefc9bb38957ec463edb575f4495275aae7c57e Reviewed-by: Yunqiao Yin --- .../pathinterpolator/pathinterpolator.qml | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/examples/declarative/animation/pathinterpolator/pathinterpolator.qml b/examples/declarative/animation/pathinterpolator/pathinterpolator.qml index e49ecb1..67a34ce 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() -- 1.7.2.5