summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docview/components/richtext/RichTextView.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index 7440b884..2a18b6c2 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -977,7 +977,6 @@ begin
exit;
RemoveCursor;
- UpdateScrollbarCoords;
if FVerticalPositionInitialised then
begin
@@ -998,6 +997,7 @@ begin
FLastYScroll := FYScroll;
FVerticalPositionInitialised := true;
+ UpdateScrollbarCoords;
SetupCursor;
end;