Skip to content

Commit

Permalink
add brackets.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 1, 2015
1 parent 5a557bf commit ea3f178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/font.cpp
Expand Up @@ -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<std::string> 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")
{
Expand Down

0 comments on commit ea3f178

Please sign in to comment.