diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-05 14:38:36 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-05 14:38:36 +0200 |
commit | 0300aefbde5c285a88f9b2625e590b7b9299df0b (patch) | |
tree | 2afe454106972c8801c4a1a90351166343b8cf54 /docview/components | |
parent | b38c53b905437f1ae00cb14c9d2d01662bfc020a (diff) | |
download | fpGUI-0300aefbde5c285a88f9b2625e590b7b9299df0b.tar.xz |
DocView: clicking on scrolled pages did not detect hyperlinks.
This was a bug, where I didn't apply the scroll offset correctly.
for the Y-axis.
Diffstat (limited to 'docview/components')
-rw-r--r-- | docview/components/richtext/RichTextView.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas index e50f2b62..8eee11b0 100644 --- a/docview/components/richtext/RichTextView.pas +++ b/docview/components/richtext/RichTextView.pas @@ -1078,8 +1078,8 @@ begin exit; end; - Result := FLayout.FindPoint( XToFind + FXScroll, - YToFind + FYScroll, + Result := FLayout.FindPoint( XToFind + FXScroll, // horizontal scrolls into positive + YToFind + (-FYScroll), // vertical scrolls into negative LineIndex, Offset, Link ); |