diff --git a/xybrid/ui/patchboard/patchboardscene.cpp b/xybrid/ui/patchboard/patchboardscene.cpp index 8498d1c..1effa51 100644 --- a/xybrid/ui/patchboard/patchboardscene.cpp +++ b/xybrid/ui/patchboard/patchboardscene.cpp @@ -132,9 +132,9 @@ void PatchboardScene::drawBackground(QPainter* painter, const QRectF& rect) { const constexpr int step = 32; // grid size painter->setPen(QPen(QColor(127, 127, 127, 63), 1)); - for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step) + for (auto y = std::floor(rect.top() / step) * step + .5; y < rect.bottom(); y += step) // NOLINT painter->drawLine(QPointF(rect.left(), y), QPointF(rect.right(), y)); - for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step) + for (auto x = std::floor(rect.left() / step) * step + .5; x < rect.right(); x += step) // NOLINT painter->drawLine(QPointF(x, rect.top()), QPointF(x, rect.bottom())); }