diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-09 19:36:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-09 19:36:59 +0300 |
commit | 6a7003cec451a20e22d74ebeb48a0e50d1f73309 (patch) | |
tree | 24f8e90015b9cb79bf4cac1b3520bcec018d4676 /src/configuration.cpp | |
parent | 1076ed1788adb2499d9b369d190243f3b70921c8 (diff) | |
download | manaplus-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.gz manaplus-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.bz2 manaplus-6a7003cec451a20e22d74ebeb48a0e50d1f73309.tar.xz manaplus-6a7003cec451a20e22d74ebeb48a0e50d1f73309.zip |
Add missing default for float fields loading as string config parameters.
Thus fix wrong gui transparency at first start if open settings and press apply.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 361c937fd..40d701e76 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -523,6 +523,11 @@ std::string Configuration::getStringValue(const std::string &key) const defaultValue = toString((static_cast<const IntData*>( data))->getData()); } + else if (type == VariableData::DATA_FLOAT) + { + defaultValue = toString((static_cast<const FloatData*>( + data))->getData()); + } } else { |