SynEdit: Fixed crash in MarkTextAsSaved. Issue #0035635

git-svn-id: trunk@61309 -
This commit is contained in:
martin 2019-06-01 11:27:36 +00:00
parent 4dc3fb5ee6
commit 93d8287c3e

View File

@ -7562,7 +7562,7 @@ end;
procedure TCustomSynEdit.MarkTextAsSaved;
begin
TSynEditStringList(fLines).MarkSaved;
if FLeftGutter.Visible and FLeftGutter.ChangesPart(0).Visible then
if FLeftGutter.Visible and (FLeftGutter.ChangesPart(0) <> nil) and FLeftGutter.ChangesPart(0).Visible then
InvalidateGutter; // Todo: Make the ChangeGutterPart an observer
end;