From a228359c90ead30cdee969467aaead2a75a5f0b5 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Tue, 23 Nov 2021 12:43:08 +0100 Subject: [PATCH] Fix crash due to long text (>1KB) in grid cell editor. Show popup text editor from 1KB up (not 100KB). --- source/grideditlinks.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/grideditlinks.pas b/source/grideditlinks.pas index 225ea4eb..8a041673 100644 --- a/source/grideditlinks.pas +++ b/source/grideditlinks.pas @@ -1157,7 +1157,7 @@ begin if Result then begin FButton.Visible := ButtonVisible; SetBounds(Rect(0, 0, 0, 0)); - if (Length(FEdit.Text) > SIZE_KB*100) or (ScanLineBreaks(FEdit.Text) <> lbsNone) then + if (Length(FEdit.Text) > SIZE_KB) or (ScanLineBreaks(FEdit.Text) <> lbsNone) then ButtonClick(FTree) else begin FPanel.Show;