@@ -397,7 +397,7 @@ string ClassFlowControll::GetPrevalue(std::string _number)
return flowpostprocessing->GetPreValue(_number);
}
- return std::string();
+ return std::string("");
std::string ClassFlowControll::UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern)
@@ -80,12 +80,15 @@ string ClassFlowPostProcessing::GetPreValue(std::string _number)
int index = -1;
if (_number == "")
- _number = "default";
+ _number = "default";
for (int i = 0; i < NUMBERS.size(); ++i)
if (NUMBERS[i]->name == _number)
index = i;
+ if (index == -1)
+
result = RundeOutput(NUMBERS[index]->PreValue, NUMBERS[index]->Nachkomma);
return result;