Преглед изворни кода

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

Marko Pintera пре 12 година
родитељ
комит
2b03ac0342
1 измењених фајлова са 1 додато и 1 уклоњено
  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()))
 			if(lineDesc.getStartChar() == lineDesc.getEndChar() || isNewlineChar(lineDesc.getStartChar()))
 				continue;
 				continue;
 
 
-			UINT32 endCharIdx = lineDesc.getEndChar(true);
+			UINT32 endCharIdx = lineDesc.getEndChar(false);
 			if(endCharIdx > 0)
 			if(endCharIdx > 0)
 				endCharIdx = endCharIdx - 1;
 				endCharIdx = endCharIdx - 1;