فهرست منبع

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

BearishSun 10 سال پیش
والد
کامیت
d28bf9e3e4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);