summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-03 12:35:05 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-11-03 12:35:05 +0200
commit129509b03a4d729598d8ebfd712d1cee79dbd5c2 (patch)
treef318f2a491e07a266dcb5a0a7d16d5c4056ca684 /src
parenta8de93f8686702933db0cf11d0331d4beea3a043 (diff)
downloadfpGUI-129509b03a4d729598d8ebfd712d1cee79dbd5c2.tar.xz
Fix bug where if Memo linecount = 0 the cursor was not drawn.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_memo.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/fpg_memo.pas b/src/gui/fpg_memo.pas
index 7b59043f..89780258 100644
--- a/src/gui/fpg_memo.pas
+++ b/src/gui/fpg_memo.pas
@@ -864,6 +864,10 @@ begin
Break;
end; { for }
+ // Special case because it never entered the for loop above
+ if (LineCount = 0) and Focused then
+ fpgCaret.SetCaret(Canvas, FSideMargin, 3, fpgCaret.Width, FFont.Height);
+
if not Focused then
fpgCaret.UnSetCaret(Canvas);