diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-08-21 14:14:45 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-08-21 14:14:45 +0100 |
commit | f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd (patch) | |
tree | 1afa70a168454df10bcb8d07ba22b288ae17c8ad /ui/font.cpp | |
parent | Fix shadowing (diff) | |
download | ilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.tar.bz2 ilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.tar.xz ilt-f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd.zip |
Fix string_view iteration
Diffstat (limited to 'ui/font.cpp')
-rw-r--r-- | ui/font.cpp | 2 |
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) { |