summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-08-21 14:14:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-08-21 14:14:45 +0100
commitf982f90f0bc5b77a4cdc9b942ba3bf56030bcecd (patch)
tree1afa70a168454df10bcb8d07ba22b288ae17c8ad
parentFix shadowing (diff)
downloadilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.tar.bz2
ilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.tar.xz
ilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.zip
Fix string_view iteration
-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) {