Timeline: Don't round the selection rectangles outer dimensions

Change-Id: I5d002737937593f53f2b64a5eee1cc2fd42d803f
Task-number: QTCREATORBUG-14023
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-02-25 17:20:00 +01:00
parent 16cfcfe136
commit ad484b1c2f

View File

@@ -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;