From 1909941bcf11b4bcd0f57a168e291d00e9449e1a Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 14 Mar 2013 13:34:07 +0000 Subject: 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. --- examples/apps/ide/src/fpg_textedit.pas | 1 - 1 file changed, 1 deletion(-) (limited to 'examples/apps') 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; -- cgit v1.2.3-70-g09d2