summaryrefslogtreecommitdiff
path: root/manualPorts/openscad/fs.patch
blob: 6e02b5eea4896cae0f6501aabd7ca204347db038 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/FileModule.cc	2021-01-31 21:17:41.000000000 +0100
+++ b/src/FileModule.cc	2024-05-04 11:44:32.132784497 +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);