SynEdit fixed crash, if Fold-GutterPart was removed from GutterPartList (SynEdit on custom Form, modified via Object Inspector)

git-svn-id: trunk@18845 -
This commit is contained in:
martin 2009-02-28 15:30:58 +00:00
parent b31cf38ac4
commit 83fb21fe1b

View File

@ -3239,7 +3239,7 @@ var
fMarkupManager.FinishMarkupForRow(FFoldedLinesView.TextIndex[CurLine]+1);
// codefold draw splitter line
if Gutter.CodeFoldPart.Visible
if assigned(Gutter.CodeFoldPart) and Gutter.CodeFoldPart.Visible
and (FFoldedLinesView.DrawDivider[curLine]) then
begin
ypos := rcToken.Bottom - 1;
@ -3344,7 +3344,7 @@ begin
end;
// codefold draw splitter line
if Gutter.CodeFoldPart(0).Visible
if assigned(Gutter.CodeFoldPart) and Gutter.CodeFoldPart(0).Visible
and (FFoldedLinesView.DrawDivider[LastLine]) then
begin
ypos := rcToken.Bottom - 1;