Fixed Font::getWrappedCursorOffset.

This commit is contained in:
Alec Lofquist 2014-10-18 15:32:18 -05:00
parent 50d2ba2291
commit 885efcf431

View file

@ -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();
}