SynEdit: right click fold-gutter crashes, if no fold-highlighter is avail. Issue #14855

git-svn-id: trunk@22362 -
This commit is contained in:
martin 2009-10-31 17:26:55 +00:00
parent 4483337f54
commit e81f70915d

View File

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