mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 14:56:00 +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
|
begin
|
||||||
FPopUp.Items.Clear;
|
FPopUp.Items.Clear;
|
||||||
c := FFoldView.OpenFoldCount(line-1);
|
c := FFoldView.OpenFoldCount(line-1);
|
||||||
|
if c > 0 then begin
|
||||||
SetLength(FMenuInf,c);
|
SetLength(FMenuInf,c);
|
||||||
for i := c-1 downto 0 do begin
|
for i := c-1 downto 0 do begin
|
||||||
inf := FFoldView.OpenFoldInfo(line-1, i);
|
inf := FFoldView.OpenFoldInfo(line-1, i);
|
||||||
@ -249,6 +250,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
FPopUp.PopUp;
|
FPopUp.PopUp;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
Result := False;
|
Result := False;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user