Skip to content

Commit

Permalink
https://github.com/MagicFoundation/Alcinoe/issues/318
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeus64 committed Feb 15, 2024
1 parent 35ea8fb commit 1c526e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Embarcadero/Athens/Athens.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ diff --git a/Embarcadero/Athens/fmx/FMX.Canvas.D2D.pas b/Embarcadero/Athens/fmx/
- if TrailingHit then
- Result := Result + Integer(HitTestMetrics.length);
+ //https://quality.embarcadero.com/browse/RSP-39734
+ if Result >= 0 then Inc(Result); // HitTestMetrics.textPosition look like zero based
+ if TrailingHit then Inc(Result); // HitTestMetrics.textPosition look like zero based
+ //if TrailingHit then
+ // Result := Result + Integer(HitTestMetrics.length);
end
Expand Down

0 comments on commit 1c526e1

Please sign in to comment.