diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 12:33:51 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 12:33:51 +0100 | 
| commit | 7e4df772887d5c9f734dbdc62c9198b593219561 (patch) | |
| tree | 85184fc955285e56043c824793dcc655976d05bb | |
| parent | ea928797eb5f0e72cb68490a6c7956362c41560a (diff) | |
spline-widget: fix swapped [xy]step
| -rw-r--r-- | spline-widget/spline-widget.cpp | 4 | 
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,  | 
