mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
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:
@ -1157,7 +1157,7 @@ begin
|
|||||||
if Result then begin
|
if Result then begin
|
||||||
FButton.Visible := ButtonVisible;
|
FButton.Visible := ButtonVisible;
|
||||||
SetBounds(Rect(0, 0, 0, 0));
|
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)
|
ButtonClick(FTree)
|
||||||
else begin
|
else begin
|
||||||
FPanel.Show;
|
FPanel.Show;
|
||||||
|
Reference in New Issue
Block a user