Procházet zdrojové kódy

Fixed an issue where selection rectangles were incorrectly positioned at newline chars

Marko Pintera před 12 roky
rodič
revize
2b03ac0342
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      BansheeEngine/Source/BsGUIInputBox.cpp

+ 1 - 1
BansheeEngine/Source/BsGUIInputBox.cpp

@@ -952,7 +952,7 @@ namespace BansheeEngine
 			if(lineDesc.getStartChar() == lineDesc.getEndChar() || isNewlineChar(lineDesc.getStartChar()))
 				continue;
 
-			UINT32 endCharIdx = lineDesc.getEndChar(true);
+			UINT32 endCharIdx = lineDesc.getEndChar(false);
 			if(endCharIdx > 0)
 				endCharIdx = endCharIdx - 1;