From 8d6f9d960fbc3546a10741d38e4e90b65cfb71a4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 3 Nov 2022 23:13:32 +0100 Subject: Use font config to load custom font path when not using absolute path --- include/Path.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Path.hpp') diff --git a/include/Path.hpp b/include/Path.hpp index a881a53..3d849e2 100644 --- a/include/Path.hpp +++ b/include/Path.hpp @@ -48,7 +48,7 @@ namespace QuickMedia { return ""; } - Path parent() { + Path parent() const { size_t slash_index = data.rfind('/'); if(slash_index != std::string::npos && slash_index > 0) return Path(data.substr(0, slash_index)); -- cgit v1.2.3