IDE: Store units in project info file correctly. Issue #35377, patch from Ondrej.

git-svn-id: trunk@60993 -
This commit is contained in:
juha 2019-04-16 13:59:45 +00:00
parent 580c51a113
commit f5a5a18fe0

View File

@ -3176,7 +3176,7 @@ begin
for i:=0 to UnitCount-1 do
if UnitMustBeSaved(Units[i],FProjectWriteFlags,SaveSession) then begin
Units[i].SaveToXMLConfig(FXMLConfig,
Path+'Units/'+FXMLConfig.GetListItemXPath('Unit', i, UseLegacyLists)+'/',True,SaveSession,fCurStorePathDelim);
Path+'Units/'+FXMLConfig.GetListItemXPath('Unit', SaveUnitCount, UseLegacyLists)+'/',True,SaveSession,fCurStorePathDelim);
inc(SaveUnitCount);
end;
FXMLConfig.SetListItemCount(Path+'Units/',SaveUnitCount,UseLegacyLists);