summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-03-31 09:20:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-03-31 09:20:12 +0200
commit4d8291d9129c2f22e8ab62403b0ee803d4ac8cb2 (patch)
treed7a3d471362c3bc8af81fcea5bee8abb719d1a85
parent43c5c2e109868812f0d9365f08bc53acdb56d0d7 (diff)
accela: fix sensitivity label
-rw-r--r--ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp
index 35c4b7fa..00dc73bf 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp
+++ b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp
@@ -52,12 +52,12 @@ void FilterControls::save() {
void FilterControls::update_rot_display(int value)
{
- ui.rot_gain->setText(QString::number(value * 7 / 100. + 1) + "°");
+ ui.rot_gain->setText(QString::number((value + 1) * 7 / 100.) + "°");
}
void FilterControls::update_trans_display(int value)
{
- ui.trans_gain->setText(QString::number(value * 5 / 100. + 1) + "mm");
+ ui.trans_gain->setText(QString::number((value + 1) * 5 / 100.) + "mm");
}
void FilterControls::update_ewma_display(int value)