tkurbad-overlay/media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch

13 lines
621 B
Diff
Raw Normal View History

2024-11-05 12:51:21 +01:00
diff '--color=auto' -ur openscad-2021.01-orig/src/FileModule.cc openscad-2021.01/src/FileModule.cc
--- openscad-2021.01-orig/src/FileModule.cc 2021-01-31 21:17:41.000000000 +0100
+++ openscad-2021.01/src/FileModule.cc 2024-05-20 07:50:31.746487490 +0200
@@ -65,7 +65,7 @@
auto ext = fs::path(path).extension().generic_string();
if (boost::iequals(ext, ".otf") || boost::iequals(ext, ".ttf")) {
- if (fs::is_regular(path)) {
+ if (fs::is_regular_file(path)) {
FontCache::instance()->register_font_file(path);
} else {
LOG(message_group::Error,Location::NONE,"","Can't read font with path '%1$s'",path);