summaryrefslogtreecommitdiff
path: root/libtemplate
diff options
context:
space:
mode:
Diffstat (limited to 'libtemplate')
-rw-r--r--libtemplate/globals.c5
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);
}
}