diff options
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp | 4 |
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) |