From 5bbc2f3da58c22a09641791cd3c1554b0a77c365 Mon Sep 17 00:00:00 2001 From: SybexX Date: Sun, 2 Mar 2025 13:26:07 +0100 Subject: [PATCH] Update ClassFlowPostProcessing.cpp fix for: ChangeRateThreshold could not be deactivated --- code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp index 99337ea8..a4160b56 100644 --- a/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp +++ b/code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp @@ -898,7 +898,7 @@ bool ClassFlowPostProcessing::doFlow(string zwtime) { #endif if (PreValueUse && NUMBERS[j]->PreValueOkay) { - if (NUMBERS[j]->Nachkomma > 0) { + if ((NUMBERS[j]->Nachkomma > 0) && (NUMBERS[j]->ChangeRateThreshold > 0)) { double _difference1 = (NUMBERS[j]->PreValue - (NUMBERS[j]->ChangeRateThreshold / pow(10, NUMBERS[j]->Nachkomma))); double _difference2 = (NUMBERS[j]->PreValue + (NUMBERS[j]->ChangeRateThreshold / pow(10, NUMBERS[j]->Nachkomma)));