Fix crash due to long text (>1KB) in grid cell editor. Show popup text editor from 1KB up (not 100KB).

This commit is contained in:
Ansgar Becker
2021-11-23 12:43:08 +01:00
parent 00625b8f09
commit a228359c90

View File

@ -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;