diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-03 23:13:32 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-03 23:13:32 +0100 |
commit | 8d6f9d960fbc3546a10741d38e4e90b65cfb71a4 (patch) | |
tree | 1f515b2854d6d416542a8bc760e5a54da585c119 /include | |
parent | f925387b18e8f06b51f57ad21c42380b75cd0458 (diff) |
Use font config to load custom font path when not using absolute path
Diffstat (limited to 'include')
-rw-r--r-- | include/Path.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |