|
|
@ -266,10 +266,10 @@ namespace Avalonia.Media.TextFormatting |
|
|
{ |
|
|
{ |
|
|
offset = Math.Max(0, currentPosition - shapedRun.Text.Start); |
|
|
offset = Math.Max(0, currentPosition - shapedRun.Text.Start); |
|
|
} |
|
|
} |
|
|
else |
|
|
//else
|
|
|
{ |
|
|
//{
|
|
|
offset = Math.Max(0, currentPosition - shapedRun.Text.Start + shapedRun.Text.Length); |
|
|
// offset = Math.Max(0, currentPosition - shapedRun.Text.Start + shapedRun.Text.Length);
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
characterHit = new CharacterHit(characterHit.FirstCharacterIndex + offset, characterHit.TrailingLength); |
|
|
characterHit = new CharacterHit(characterHit.FirstCharacterIndex + offset, characterHit.TrailingLength); |
|
|
|
|
|
|
|
|
|