Commits

Alex Szpakowski committed b266b14

love.graphics.printf errors if the wrap limit parameter is negative (resolves issue #706)

Comments (0)

Files changed (1)

src/modules/graphics/opengl/Graphics.cpp

 	if (currentFont == 0)
 		return;
 
+	if (wrap < 0.0f)
+		throw love::Exception("Horizontal wrap limit cannot be negative.");
+
 	using std::string;
 	using std::vector;