fixed Bug that double vars were not handled correctly

This commit is contained in:
louis
2015-01-26 17:10:17 +01:00
parent d0868978bc
commit 705eefc1f0
3 changed files with 21 additions and 4 deletions

View File

@@ -112,6 +112,11 @@ void cGlobals::ReplaceDoubleVars(string &value) {
stringstream st;
st << it->second;
string doubleVal = st.str();
if (config.replaceDecPoint) {
if (doubleVal.find_first_of('.') != string::npos) {
std::replace( doubleVal.begin(), doubleVal.end(), '.', config.decPoint);
}
}
value = value.replace(foundToken, token.size(), doubleVal);
}
}