summaryrefslogtreecommitdiff
path: root/media-gfx/openscad/files/openscad-2021.01-boost-1.85.patch
blob: e3370f32fc38fff5bee3b56d4f6de366698f438a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);