aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-03 23:13:32 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-03 23:13:32 +0100
commit8d6f9d960fbc3546a10741d38e4e90b65cfb71a4 (patch)
tree1f515b2854d6d416542a8bc760e5a54da585c119 /include
parentf925387b18e8f06b51f57ad21c42380b75cd0458 (diff)
Use font config to load custom font path when not using absolute path
Diffstat (limited to 'include')
-rw-r--r--include/Path.hpp2
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));