浏览代码

+ Fixed readsectionvalues call

git-svn-id: trunk@53 -
michael 20 年之前
父节点
当前提交
d52d586456
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      fcl/inc/inifiles.pp

+ 2 - 3
fcl/inc/inifiles.pp

@@ -655,9 +655,8 @@ begin
     oSection := FSectionList.SectionByName(Section);
     oSection := FSectionList.SectionByName(Section);
     if oSection <> nil then with oSection.KeyList do
     if oSection <> nil then with oSection.KeyList do
       for i := 0 to Count-1 do begin
       for i := 0 to Count-1 do begin
-        s := Items[i].Value;
-        if s > '' then
-          Strings.Add(s);
+        s := Items[i].Ident+Separator+Items[i].Value;
+        Strings.Add(s);
       end;
       end;
   finally
   finally
     Strings.EndUpdate;
     Strings.EndUpdate;