summaryrefslogtreecommitdiff
path: root/src/gui/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/theme.cpp')
-rw-r--r--src/gui/theme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 1b1955647..ea902e2b5 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -1235,8 +1235,8 @@ ImageSet *Theme::getImageSetFromThemeXml(const std::string &name,
xmlNodeGetContent(infoNode)))
#define readFloatValue(name) \
- info->name = atof(reinterpret_cast<const char*>(\
- xmlNodeGetContent(infoNode)))
+ info->name = static_cast<float>(atof(reinterpret_cast<const char*>(\
+ xmlNodeGetContent(infoNode))))
ThemeInfo *Theme::loadInfo(const std::string &themeName)
{