diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-11-03 12:35:05 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-11-03 12:35:05 +0200 |
commit | 129509b03a4d729598d8ebfd712d1cee79dbd5c2 (patch) | |
tree | f318f2a491e07a266dcb5a0a7d16d5c4056ca684 | |
parent | a8de93f8686702933db0cf11d0331d4beea3a043 (diff) | |
download | fpGUI-129509b03a4d729598d8ebfd712d1cee79dbd5c2.tar.xz |
Fix bug where if Memo linecount = 0 the cursor was not drawn.
-rw-r--r-- | src/gui/fpg_memo.pas | 4 |
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); |