mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-21 05:09:31 +02:00
* Fix from Bart for unregistering out of range families. Fix issue 39791
(cherry picked from commit a4d8d2c210
)
This commit is contained in:
parent
a672c527d4
commit
756f219494
@ -487,12 +487,15 @@ var
|
||||
|
||||
begin
|
||||
//Apparently this procedure is not supposed to raise exceptions
|
||||
if AFamily<Length(TheFamilies) then
|
||||
begin
|
||||
TheFamilies[AFamily].Deleted:=True;
|
||||
for i:=0 to Length(TheUnits)-1 do
|
||||
begin
|
||||
if TheUnits[i].Fam=AFamily then
|
||||
TheUnits[i].Deleted:=True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Function CheckFamily(i:TConvFamily):Boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user