Fix build with freetype support disabled
authorsfan5 <sfan5@live.de>
Sat, 14 Jan 2017 11:28:43 +0000 (12:28 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 14 Jan 2017 11:39:20 +0000 (12:39 +0100)
src/defaultsettings.cpp

index 14a88b7a6a42b0561062ca04a2c4fa3cfaf9660a..59cfdd50dce6ed850d3b027720cc1138aae60003 100644 (file)
@@ -230,7 +230,7 @@ void set_default_settings(Settings *settings)
        settings->setDefault("font_path", porting::getDataPath("fonts" DIR_DELIM "lucida_sans"));
        settings->setDefault("mono_font_path", porting::getDataPath("fonts" DIR_DELIM "mono_dejavu_sans"));
 
-       std::string font_size_str = to_string(DEFAULT_FONT_SIZE);
+       std::string font_size_str = std::to_string(DEFAULT_FONT_SIZE);
 #endif
        settings->setDefault("font_size", font_size_str);
        settings->setDefault("mono_font_size", font_size_str);