From: Michael Brasser Date: Thu, 2 Feb 2012 23:17:43 +0000 (+1000) Subject: Fix example to clear rect before painting. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=96860e3c9e425730aeb241ad7e1a5392164aea55;p=konrad%2Fqtdeclarative.git Fix example to clear rect before painting. Change-Id: Iecefc9bb38957ec463edb575f4495275aae7c57e Reviewed-by: Yunqiao Yin --- 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()