LazReport, fix exporting to the second on list filter file format

git-svn-id: trunk@52473 -
This commit is contained in:
jesus 2016-06-10 17:41:13 +00:00
parent c3296bdb1b
commit 2bdea5e7ad

View File

@ -1368,7 +1368,7 @@ begin
FilterInfo := ExportFilters[i];
if FilterInfo.Enabled then
begin
FExtList.AddObject(FilterInfo.FilterExt, TObject(PtrInt(i)));
FExtList.AddObject(FilterInfo.FilterExt, TObject(PtrInt(i+1)));
if FilterStr <> '' then
FilterStr := FilterStr + '|';
FilterStr := FilterStr + FilterInfo.FilterDesc + '|' + FilterInfo.FilterExt;
@ -1384,7 +1384,7 @@ begin
SaveToFile(SaveDialog.Filename) // using .frp
else
begin
Index := PtrInt(fExtList.Objects[Index]);
Index := PtrInt(fExtList.Objects[Index])-1;
ExportToWithFilterIndex(Index, SaveDialog.FileName);
end;
end;