From 885efcf4310db7f28149a9d764e5db0562ae7776 Mon Sep 17 00:00:00 2001 From: Alec Lofquist Date: Sat, 18 Oct 2014 15:32:18 -0500 Subject: [PATCH] Fixed Font::getWrappedCursorOffset. --- es-core/src/resources/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index ec0fda351..f8cd9dc6a 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -688,7 +688,7 @@ Eigen::Vector2f Font::getWrappedTextCursorOffset(std::string text, float xLen, s continue; } - Glyph* glyph = glyph; + Glyph* glyph = getGlyph(character); if(glyph) lineWidth += glyph->advance.x(); }