summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-window.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-13 22:37:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-13 22:37:16 +0100
commitb7909dccf97d8802c7eb1ac5e2a2000bf81c5266 (patch)
treede1d3dcb514974fe2379201a913f230f32400828 /gui/mapping-window.cpp
parent1efdf708f871f2ff5c3c184abf23c0a873379f73 (diff)
gui/mappings: fix zooming for position DOF
Reported-by: @mrsanchos Alexander Orokhovatskiy
Diffstat (limited to 'gui/mapping-window.cpp')
-rw-r--r--gui/mapping-window.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/mapping-window.cpp b/gui/mapping-window.cpp
index 05ccddda..0bb46c01 100644
--- a/gui/mapping-window.cpp
+++ b/gui/mapping-window.cpp
@@ -19,16 +19,19 @@ MapWidget::MapWidget(Mappings& m) : m(m)
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
- tie_setting(s.a_x.altp, ui.tx_altp);
- tie_setting(s.a_y.altp, ui.ty_altp);
- tie_setting(s.a_z.altp, ui.tz_altp);
tie_setting(s.a_yaw.altp, ui.rx_altp);
tie_setting(s.a_pitch.altp, ui.ry_altp);
tie_setting(s.a_roll.altp, ui.rz_altp);
+ tie_setting(s.a_x.altp, ui.tx_altp);
+ tie_setting(s.a_y.altp, ui.ty_altp);
+ tie_setting(s.a_z.altp, ui.tz_altp);
tie_setting(s.a_yaw.clamp, ui.max_yaw_rotation);
tie_setting(s.a_pitch.clamp, ui.max_pitch_rotation);
tie_setting(s.a_roll.clamp, ui.max_roll_rotation);
+ tie_setting(s.a_x.clamp, ui.max_x_translation);
+ tie_setting(s.a_y.clamp, ui.max_y_translation);
+ tie_setting(s.a_z.clamp, ui.max_z_translation);
}
void MapWidget::load()