From 0300aefbde5c285a88f9b2625e590b7b9299df0b Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 5 Aug 2010 14:38:36 +0200 Subject: 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. --- docview/components/richtext/RichTextView.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docview') 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 @@ function TRichTextView.FindPoint( XToFind: longint; 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 ); -- cgit v1.2.3-54-g00ecf