From b3391bd05a2f36b5be1141089a8db104c31fa08b Mon Sep 17 00:00:00 2001 From: BertrandP <bertrand.provot@insa-rennes.fr> Date: Wed, 25 Jul 2018 11:19:03 +0200 Subject: [PATCH] filter choice correct display of normalisation step --- app/Widgets/FilterChoice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Widgets/FilterChoice.cpp b/app/Widgets/FilterChoice.cpp index 5d01431..d1bc16f 100644 --- a/app/Widgets/FilterChoice.cpp +++ b/app/Widgets/FilterChoice.cpp @@ -353,7 +353,7 @@ void FilterChoice::showCustom(bool a){ } _a=false; if(a){ - if(!_blurChoices->currentIndex()>=0){ + if(_filterPath->text().toStdString().compare("/")==0){ _checkbox_2->setChecked(false); _checkbox_2->setEnabled(false); _label_3->setEnabled(false); @@ -379,7 +379,7 @@ void FilterChoice::currentBlurChanged(int a) updateDisplay(); if(_spinbox->isEnabled()) updateNormValue(); - + } /** @@ -720,7 +720,7 @@ void FilterChoice::updateNormValue(){ } } if(sum_pos + sum_neg != 0){ - normValue = sum_pos + sum_neg; + normValue = max(normValue, abs(sum_pos + sum_neg)); } else{ normValue = max(normValue, sum_pos); -- GitLab