From ad484b1c2fe9d64a7729bda0723cf26f16ea2ba0 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 25 Feb 2015 17:20:00 +0100 Subject: [PATCH] Timeline: Don't round the selection rectangles outer dimensions Change-Id: I5d002737937593f53f2b64a5eee1cc2fd42d803f Task-number: QTCREATORBUG-14023 Reviewed-by: Joerg Bornemann --- src/libs/timeline/timelineselectionrenderpass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/timeline/timelineselectionrenderpass.cpp b/src/libs/timeline/timelineselectionrenderpass.cpp index 6fbe69d3012..dbf33a8b070 100644 --- a/src/libs/timeline/timelineselectionrenderpass.cpp +++ b/src/libs/timeline/timelineselectionrenderpass.cpp @@ -103,8 +103,8 @@ TimelineRenderPass::State *TimelineSelectionRenderPass::update( // left and width the error on the left border is inherited by the right border. Like this // they're independent. - QRectF outer(QPointF(qFloor(left * parentState->scale()), top), - QPointF(qCeil(right * parentState->scale()), top + height)); + QRectF outer(QPointF(left * parentState->scale(), top), + QPointF(right * parentState->scale(), top + height)); float scaleConversion = parentState->scale() / spacing; float missing = 3.0 - outer.width() / scaleConversion;