From f982f90f0bc5b77a4cdc9b942ba3bf56030bcecd Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 21 Aug 2022 14:14:45 +0100 Subject: Fix string_view iteration --- ui/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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; std::optional 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) { -- cgit v1.2.3