Explorar o código

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

Marko Pintera %!s(int64=12) %!d(string=hai) anos
pai
achega
2b03ac0342
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;