summaryrefslogtreecommitdiff
path: root/docview/components
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-17 12:55:22 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-17 12:55:22 +0200
commit1921a1bdf296b454ea6ccf4d3e4705ee1a52d23e (patch)
tree5a249c7ee4678a3b40981ed7ce5b33d78b13bcdc /docview/components
parenta2cc0c689fbc222f1b9ff40d54c01a47ba88f8ce (diff)
downloadfpGUI-1921a1bdf296b454ea6ccf4d3e4705ee1a52d23e.tar.xz
richview: to prevent "index out of bounds" errors while RV is empty.
Diffstat (limited to 'docview/components')
-rw-r--r--docview/components/richtext/RichTextView.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index ed774366..ee8f59ec 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -812,6 +812,8 @@ var
Position: TTextPosition;
begin
inherited HandleMouseMove(x, y, btnstate, shiftstate);
+ if FText = '' then
+ exit;
Position := FindPoint(X, Y, Line, Offset, Link);
if Link <> FLastLinkOver then