Fixed love.graphics.printf wrapping when the wrap limit is the same as the text width (issue #558)

This commit is contained in:
Alex Szpakowski
2013-03-13 00:08:09 -03:00
parent 1172d5b836
commit b8ec6633ab
+1 -1
View File
@@ -446,7 +446,7 @@ std::vector<std::string> Font::getWrap(const std::string &text, float wrap, int
width += getWidth(word);
// on wordwrap, push line to line buffer and clear string builder
if (width >= wrap && oldwidth > 0)
if (width > wrap && oldwidth > 0)
{
int realw = (int) width;