Skip to content

Commit b623d2c

Browse files
committed
Opravit nacitani splnl souboru.
1 parent 434b5d1 commit b623d2c

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

src/bloky/TBlok.pas

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ TBlk = class(TObject)
145145

146146
implementation
147147

148-
uses TBloky,
149-
DataBloky, appEv;
148+
uses TBloky, DataBloky, appEv, ownStrUtils;
150149

151150
////////////////////////////////////////////////////////////////////////////////
152151

@@ -476,12 +475,16 @@ function TBlk.LoadORs(ini: TMemIniFile; section: string): TStrings;
476475
end;
477476

478477
strs := TStringList.Create();
479-
ExtractStrings([';'], [], PChar(ini.ReadString(section, IntToStr(Self.id), '')), strs);
480-
if (strs.Count < 1) then Exit(strs);
481-
if (Self.ORsRef <> nil) then
482-
Self.ORsRef.Free();
483-
Self.ORsRef := ORs.ParseORs(strs[0]);
484-
478+
try
479+
ExtractStringsEx([';'], [], ini.ReadString(section, IntToStr(Self.id), ''), strs);
480+
if (strs.Count < 1) then Exit(strs);
481+
if (Self.ORsRef <> nil) then
482+
Self.ORsRef.Free();
483+
Self.ORsRef := ORs.ParseORs(strs[0]);
484+
except
485+
strs.Free();
486+
raise;
487+
end;
485488
Result := strs;
486489
end;
487490
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)