Browse Source

Fix Text:getWidth when the Text only contains spaces

Fixes #1555
Alex Szpakowski 4 years ago
parent
commit
c59c85e04c
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/modules/graphics/Text.cpp

+ 0 - 3
src/modules/graphics/Text.cpp

@@ -122,9 +122,6 @@ void Text::addTextData(const TextData &t)
 		text_data.clear();
 	}
 
-	if (vertices.empty())
-		return;
-
 	if (t.use_matrix)
 		t.matrix.transformXY(&vertices[0], &vertices[0], (int) vertices.size());