diff options
Diffstat (limited to 'libtemplate')
| -rw-r--r-- | libtemplate/globals.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtemplate/globals.c b/libtemplate/globals.c index 36e2c19..1ce7502 100644 --- a/libtemplate/globals.c +++ b/libtemplate/globals.c @@ -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); } } |
