Commit f66a7462 authored by Bart B's avatar Bart B 🐞
Browse files

IDE: fix crash in TDiffDlg.SaveSettings when fFile = nil. Issue #27780.

git-svn-id: trunk@48620 -
parent 48f9c225
......@@ -461,7 +461,7 @@ end;
procedure TDiffDlg.SaveSettings;
begin
InputHistories.DiffFlags:=GetDiffOptions;
if fSelectedFile2<>nil then begin
if (fSelectedFile2<>nil) and (fSelectedFile2.fFile<>nil) then begin
InputHistories.DiffText2:=fSelectedFile2.fFile.Name;
InputHistories.DiffText2OnlySelection:=Text2OnlySelectionCheckBox.Checked;
end else begin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment