summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-05 14:38:36 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-05 14:38:36 +0200
commit0300aefbde5c285a88f9b2625e590b7b9299df0b (patch)
tree2afe454106972c8801c4a1a90351166343b8cf54 /docview
parentb38c53b905437f1ae00cb14c9d2d01662bfc020a (diff)
downloadfpGUI-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')
-rw-r--r--docview/components/richtext/RichTextView.pas4
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 );