Selaa lähdekoodia

+ Fixed bug #4012

git-svn-id: trunk@118 -
michael 20 vuotta sitten
vanhempi
commit
88877284df
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      fcl/inc/inifiles.pp

+ 3 - 0
fcl/inc/inifiles.pp

@@ -534,6 +534,9 @@ begin
            begin
              sIdent:=Trim(Copy(sLine, 1,  j - 1));
              sValue:=Trim(Copy(sLine, j + 1, Length(sLine) - j));
+             J:=Length(sValue);
+             If (J>0) and (sValue[1]='"') and (sValue[J]='"') then
+               sValue:=Copy(sValue,2,J-2);
            end;
         end;
         oSection.KeyList.Add(TIniFileKey.Create(sIdent, sValue));