From b7909dccf97d8802c7eb1ac5e2a2000bf81c5266 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 13 Feb 2017 22:37:16 +0100 Subject: gui/mappings: fix zooming for position DOF Reported-by: @mrsanchos Alexander Orokhovatskiy --- gui/mapping-window.cpp | 9 ++++++--- 1 file 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() -- cgit v1.2.3