IDE: fixed loading history position filenames

git-svn-id: trunk@15420 -
This commit is contained in:
mattias 2008-06-14 11:29:25 +00:00
parent f1f3dcac16
commit 9e39fbdff8

View File

@ -635,8 +635,10 @@ begin
NewHistoryIndex:=XMLConfig.GetValue(Path+'JumpHistory/HistoryIndex',-1); NewHistoryIndex:=XMLConfig.GetValue(Path+'JumpHistory/HistoryIndex',-1);
NewPosition:=nil; NewPosition:=nil;
for i:=0 to NewCount-1 do begin for i:=0 to NewCount-1 do begin
if NewPosition=nil then if NewPosition=nil then begin
NewPosition:=TProjectJumpHistoryPosition.Create('',Point(0,0),0); NewPosition:=TProjectJumpHistoryPosition.Create('',Point(0,0),0);
NewPosition.OnLoadSaveFilename:=OnLoadSaveFilename;
end;
NewPosition.LoadFromXMLConfig(XMLConfig, NewPosition.LoadFromXMLConfig(XMLConfig,
Path+'JumpHistory/Position'+IntToStr(i+1)+'/'); Path+'JumpHistory/Position'+IntToStr(i+1)+'/');
if (NewPosition.Filename<>'') and (NewPosition.CaretXY.Y>0) if (NewPosition.Filename<>'') and (NewPosition.CaretXY.Y>0)