Browse Source

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

Alex Szpakowski 12 years ago
parent
commit
b8ec6633ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Font.cpp

+ 1 - 1
src/modules/graphics/opengl/Font.cpp

@@ -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;