summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-01-29 12:33:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-01-29 12:33:51 +0100
commit7e4df772887d5c9f734dbdc62c9198b593219561 (patch)
tree85184fc955285e56043c824793dcc655976d05bb /spline-widget/spline-widget.cpp
parentea928797eb5f0e72cb68490a6c7956362c41560a (diff)
spline-widget: fix swapped [xy]step
Diffstat (limited to 'spline-widget/spline-widget.cpp')
-rw-r--r--spline-widget/spline-widget.cpp4
1 files changed, 2 insertions, 2 deletions
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,