From 7e4df772887d5c9f734dbdc62c9198b593219561 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Jan 2017 12:33:51 +0100 Subject: spline-widget: fix swapped [xy]step --- spline-widget/spline-widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spline-widget') diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp index c4cee1bb..c17bc291 100644 --- a/spline-widget/spline-widget.cpp +++ b/spline-widget/spline-widget.cpp @@ -126,7 +126,7 @@ void spline_widget::drawBackground() const qreal maxy = _config->max_output(); // horizontal grid - for (int i = 0; i <= maxy; i += xstep) + for (int i = 0; i <= maxy; i += ystep) { const int y = int(pixel_bounds.height() - i * c.y() + pixel_bounds.y()); drawLine(painter, @@ -141,7 +141,7 @@ void spline_widget::drawBackground() } // vertical grid - for (int i = 0; i <= maxx; i += ystep) + for (int i = 0; i <= maxx; i += xstep) { const int x = iround(pixel_bounds.x() + i * c.x()); drawLine(painter, -- cgit v1.2.3