mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 20:39:09 +02:00
Converter: Fix a crash when converting a single unit. Issue #32785, patch from Timl.
git-svn-id: trunk@56660 -
This commit is contained in:
parent
a3649ec49b
commit
e93ea1ced9
@ -464,7 +464,8 @@ var
|
|||||||
i, x: Integer;
|
i, x: Integer;
|
||||||
begin
|
begin
|
||||||
for i:=fMissingUnits.Count-1 downto 0 do begin
|
for i:=fMissingUnits.Count-1 downto 0 do begin
|
||||||
if ACommentedUnits.Find(fMissingUnits[i], x) then begin
|
if Assigned(ACommentedUnits) and ACommentedUnits.Find(fMissingUnits[i], x) then
|
||||||
|
begin
|
||||||
fUnitsToComment.Add(fMissingUnits[i]);
|
fUnitsToComment.Add(fMissingUnits[i]);
|
||||||
fMissingUnits.Delete(i);
|
fMissingUnits.Delete(i);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user