diff --git a/src/font.cpp b/src/font.cpp index 796cac08230e..dde2e9d9fc44 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -425,8 +425,9 @@ void manager::init() const #if CAIRO_HAS_WIN32_FONT BOOST_FOREACH(const std::string& path, filesystem::get_binary_paths("fonts")) { std::vector files; - if(filesystem::is_directory(path)) + if(filesystem::is_directory(path)) { filesystem::get_files_in_dir(path, &files, NULL, filesystem::ENTIRE_FILE_PATH); + } BOOST_FOREACH(const std::string& file, files) { if(file.substr(file.length() - 4) == ".ttf" || file.substr(file.length() - 4) == ".ttc") {