From db6bf5be59c48144cb50f429745389dfd192fa1e Mon Sep 17 00:00:00 2001 From: Christiaan Janssen Date: Fri, 8 Jul 2011 12:11:21 +0200 Subject: [PATCH] QmlProfiler: fixed artifacts when rendering background Change-Id: I7707657b6788316a82ca9b3df33bf00e3692d75e Reviewed-on: http://codereview.qt.nokia.com/1360 Reviewed-by: Aurindam Jana --- src/plugins/qmlprofiler/qml/TimeDisplay.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qml/TimeDisplay.qml b/src/plugins/qmlprofiler/qml/TimeDisplay.qml index 24dd47d8cf0..3b5c67852c7 100644 --- a/src/plugins/qmlprofiler/qml/TimeDisplay.qml +++ b/src/plugins/qmlprofiler/qml/TimeDisplay.qml @@ -103,7 +103,7 @@ TiledCanvas { } function drawBackgroundBars( ctxt, region ) { - var barHeight = labels.height / labels.rowCount; + var barHeight = Math.round(labels.height / labels.rowCount); var originY = labels.y for (var i=0; i