Commits

Alex Szpakowski committed b51375c

Fixed justify printf Align Mode (issue #635)

  • Participants
  • Parent commits 97dec81

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/Graphics.cpp

 				currentFont->print(*line_iter, ceil(x + (wrap - width) / 2), ceil(y), 0.0f);
 				break;
 			case ALIGN_JUSTIFY:
-				if (line_iter->length() > 1 && (line_iter+1) != line_end)
+				if (line_iter->length() > 1)
 					letter_spacing = (wrap - width) / float(line_iter->length() - 1);
 				else
 					letter_spacing = 0.0f;