From 97a1bf2f5dcb640ae0ce2f771b1234d1678d8db5 Mon Sep 17 00:00:00 2001 From: DanielRabl <48823338+DanielRabl@users.noreply.github.com> Date: Sun, 22 May 2022 14:47:49 +0200 Subject: [PATCH] Use wide-string character consistently Comparing '\r' against 8bit character instead of 16bit wide character. --- src/SFML/Graphics/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index d6f16317..fe61bd65 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -447,7 +447,7 @@ void Text::ensureGeometryUpdate() const Uint32 curChar = m_string[i]; // Skip the \r char to avoid weird graphical issues - if (curChar == '\r') + if (curChar == L'\r') continue; // Apply the kerning offset