summaryrefslogtreecommitdiff
path: root/ui/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/font.cpp')
-rw-r--r--ui/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/font.cpp b/ui/font.cpp
index 93b36e1..0e251ea 100644
--- a/ui/font.cpp
+++ b/ui/font.cpp
@@ -73,7 +73,7 @@ Font::generateChars(const std::string_view chars) const
std::optional<FT> ft;
std::optional<Face> face;
- for (auto c = chars.data(); c <= &chars.back(); c = next_char(c)) {
+ for (auto c = &chars.front(); c <= &chars.back(); c = next_char(c)) {
const auto codepoint = get_codepoint(c);
if (charsData.find(codepoint) == charsData.end()) {
if (!ft) {