diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-06 21:18:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-06 21:18:13 +0100 |
commit | 2521a7918783758928a58f6032ca6fad53a89c01 (patch) | |
tree | a34eda1e01b44133b7a1d6035f101662e7c292d2 /gui | |
parent | 0fb267c19925a949a8b1f8c62d9fbe52ba821d3d (diff) |
spline: snap x, y coordinates to grid
Diffstat (limited to 'gui')
-rw-r--r-- | gui/curve-config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/curve-config.cpp b/gui/curve-config.cpp index 2e9065b4..7cd78580 100644 --- a/gui/curve-config.cpp +++ b/gui/curve-config.cpp @@ -54,6 +54,12 @@ MapWidget::MapWidget(Mappings& m, main_settings& s) : qfc.setEnabled(qfcs[i].checkbox->isChecked()); qfc.force_redraw(); } + + if (qfcs[i].axis >= 3) + qfcs[i].qfc->set_snap(2, 5); + else + qfcs[i].qfc->set_snap(1, 5); + qfcs[i].qfc->setConfig(conf, name); } } |