fpreport designer: Adding report variables results in error because list is sorted.
Original Reporter info from Mantis: virgo @virgo.parna
-
Reporter name:
Original Reporter info from Mantis: virgo @virgo.parna
- Reporter name:
Description:
In fpreport designer:
When saving variable frmfpreportvariables.TReportVariablesForm.SaveCurrentVariable fails on
LBVariables.Items[FCurrentIndex]:=FCurrentVariable.Name;
because LNVariables is sorted.
Changing it to
LBVariables.Sorted:= False;
try
LBVariables.Items[FCurrentIndex]:=FCurrentVariable.Name;
finally
LBVariables.Sorted:= True;
end;
is sufficient to fix the issue.
Mantis conversion info:
- Mantis ID: 38140
- Version: 2.0.10
- Fixed in revision: r64753 (#64d868d2)