Merge remote-tracking branch 'origin/master' into 1.11
# Conflicts: # Source/Engine/Physics/Colliders/Collider.h
This commit is contained in:
@@ -388,7 +388,10 @@ int32 Font::HitTestText(const StringView& text, const Float2& location, const Te
|
||||
if (dst < smallestDst)
|
||||
{
|
||||
// Pointer is behind the last character in the line
|
||||
smallestIndex = line.LastCharIndex + 1;
|
||||
if (text[line.LastCharIndex] == '\n' && lineIndex != lines.Count() - 1)
|
||||
smallestIndex = line.LastCharIndex;
|
||||
else
|
||||
smallestIndex = line.LastCharIndex + 1;
|
||||
|
||||
// Fix for last line
|
||||
//if (lineIndex == lines.Count() - 1)
|
||||
|
||||
Reference in New Issue
Block a user