summaryrefslogtreecommitdiff
path: root/examples/apps
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-03-14 13:34:07 +0000
committerGraeme Geldenhuys <graemeg@gmail.com>2013-03-14 13:34:07 +0000
commit1909941bcf11b4bcd0f57a168e291d00e9449e1a (patch)
tree6d5a044454719efd93f9d2c16896c7a0a4225ad8 /examples/apps
parent0a4f73aa00061529ffd538aba3f618d73753f911 (diff)
downloadfpGUI-1909941bcf11b4bcd0f57a168e291d00e9449e1a.tar.xz
textedit: fixed bug where deleting a blank line causes a crash
We were painting outside the OnPaint event. That is not a good idea, and has undefined behaviour.
Diffstat (limited to 'examples/apps')
-rw-r--r--examples/apps/ide/src/fpg_textedit.pas1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/apps/ide/src/fpg_textedit.pas b/examples/apps/ide/src/fpg_textedit.pas
index b71da9be..d793cf66 100644
--- a/examples/apps/ide/src/fpg_textedit.pas
+++ b/examples/apps/ide/src/fpg_textedit.pas
@@ -1687,7 +1687,6 @@ begin
AddS := FLines[CaretPos.Y + 1];
FLines[CaretPos.Y] := SLine + AddS;
FLines.Delete(CaretPos.Y + 1);
- DrawVisible;
end;
consumed := True;
end;