mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 11:30:28 +02:00
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:
parent
b31cf38ac4
commit
83fb21fe1b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user