summaryrefslogtreecommitdiff
path: root/libtemplate
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-01-26 17:10:17 +0100
committerlouis <louis.braun@gmx.de>2015-01-26 17:10:17 +0100
commit705eefc1f099f652dedc5645808d798d5d3d46d7 (patch)
tree4447491fa6360be2d6a985a92c73b759ada2f9b6 /libtemplate
parentd0868978bc0970b16221cc72df5c37efbf2accc9 (diff)
downloadvdr-plugin-skindesigner-705eefc1f099f652dedc5645808d798d5d3d46d7.tar.gz
vdr-plugin-skindesigner-705eefc1f099f652dedc5645808d798d5d3d46d7.tar.bz2
fixed Bug that double vars were not handled correctly
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);
}
}