Explorar o código

Fix for text rendering incorrectly performing word wrap sometimes leaving a line with only whitespace

BearishSun %!s(int64=10) %!d(string=hai) anos
pai
achega
d28bf9e3e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      BansheeCore/Source/BsTextData.cpp

+ 1 - 1
BansheeCore/Source/BsTextData.cpp

@@ -464,7 +464,7 @@ namespace BansheeEngine
 							}
 						}
 					}
-					else
+					else if (charId != SPACE_CHAR && charId != TAB_CHAR) // If current char is whitespace add it to the existing line even if it doesn't fit
 					{
 						curLine->finalize(false);