mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 11:01:20 +02:00
LazReport, fix exporting to the second on list filter file format
git-svn-id: trunk@52473 -
This commit is contained in:
parent
c3296bdb1b
commit
2bdea5e7ad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user