From bf84a1dc1fb3eb95eb53a0b1c183dd9e4c599d9b Mon Sep 17 00:00:00 2001 From: Zithia Satazaki Date: Mon, 28 Mar 2022 17:27:41 -0400 Subject: [PATCH] it does make sense to do this here --- xybrid/ui/patchboard/patchboardscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); }