mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 20:43:40 +01:00
fixed access violation when doing "Add editor file to project" if there is no editor file (issue #1258)
git-svn-id: trunk@7958 -
This commit is contained in:
parent
cec693884a
commit
099bfa8b1e
@ -6510,8 +6510,8 @@ var
|
||||
s, ShortUnitName: string;
|
||||
begin
|
||||
Result:=mrCancel;
|
||||
BeginCodeTool(ActiveSourceEditor,ActiveUnitInfo,[]);
|
||||
if ActiveUnitInfo<>nil then begin
|
||||
if BeginCodeTool(ActiveSourceEditor,ActiveUnitInfo,[])
|
||||
and (ActiveUnitInfo<>nil) then begin
|
||||
if ActiveUnitInfo.IsPartOfProject=false then begin
|
||||
if not ActiveUnitInfo.IsVirtual then
|
||||
s:='"'+ActiveUnitInfo.Filename+'"'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user