forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user