Browse Source

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

Marko Pintera 12 years ago
parent
commit
2b03ac0342
1 changed files with 1 additions and 1 deletions
  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;