From 15ae8b0058235a63f48af72879c4217ac659f97f Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Fri, 28 Feb 2025 16:02:58 +0100 Subject: [PATCH] fix typo of variable --- sources/diagram.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/diagram.cpp b/sources/diagram.cpp index 91cc9b660..6474a0394 100644 --- a/sources/diagram.cpp +++ b/sources/diagram.cpp @@ -213,8 +213,8 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) { .insideBorderRect() .intersected(r); - qreal limite_x = rect.x() + rect.width(); - qreal limite_y = rect.y() + rect.height(); + qreal limit_x = rect.x() + rect.width(); + qreal limit_y = rect.y() + rect.height(); int g_x = (int)ceil(rect.x()); while (g_x % xGrid) ++ g_x; @@ -222,8 +222,8 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) { while (g_y % yGrid) ++ g_y; QPolygon points; - for (int gx = g_x ; gx < limite_x ; gx += xGrid) { - for (int gy = g_y ; gy < limite_y ; gy += yGrid) { + for (int gx = g_x ; gx < limit_x ; gx += xGrid) { + for (int gy = g_y ; gy < limit_y ; gy += yGrid) { points << QPoint(gx, gy); } }