diff options
Diffstat (limited to 'spline/spline-widget.hpp')
-rw-r--r-- | spline/spline-widget.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spline/spline-widget.hpp b/spline/spline-widget.hpp index 062db493..711bdb2a 100644 --- a/spline/spline-widget.hpp +++ b/spline/spline-widget.hpp @@ -40,7 +40,6 @@ public: spline_widget(QWidget *parent = 0); ~spline_widget(); - spline* config(); void setConfig(spline* spl); QColor colorBezier() const; @@ -52,8 +51,8 @@ public: double x_step() { return _x_step; } double y_step() { return _y_step; } - void set_x_step(double val) { _x_step = val; } - void set_y_step(double val) { _y_step = val; } + void set_x_step(double val) { _x_step = std::fmax(1., val); } + void set_y_step(double val) { _y_step = std::fmax(1., val); } void set_snap(double x, double y) { snap_x = x; snap_y = y; } void get_snap(double& x, double& y) const { x = snap_x; y = snap_y; } |