mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 04:45:54 +02:00
SynEdit: right click fold-gutter crashes, if no fold-highlighter is avail. Issue #14855
git-svn-id: trunk@22362 -
This commit is contained in:
parent
4483337f54
commit
e81f70915d
@ -222,6 +222,7 @@ begin
|
||||
begin
|
||||
FPopUp.Items.Clear;
|
||||
c := FFoldView.OpenFoldCount(line-1);
|
||||
if c > 0 then begin
|
||||
SetLength(FMenuInf,c);
|
||||
for i := c-1 downto 0 do begin
|
||||
inf := FFoldView.OpenFoldInfo(line-1, i);
|
||||
@ -249,6 +250,7 @@ begin
|
||||
end;
|
||||
FPopUp.PopUp;
|
||||
end;
|
||||
end;
|
||||
else
|
||||
Result := False;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user