FPReport designer: Fix adding report variables on some widgetsets. Issue #38140.

git-svn-id: trunk@64753 -
This commit is contained in:
juha 2021-03-05 22:32:59 +00:00
parent ca2323fd5e
commit 64d868d252

View File

@ -364,7 +364,9 @@ begin
// This can raise an exception. Catch it, and restore old name
try
FCurrentVariable.Name:=EName.Text;
LBVariables.Sorted:=False;
LBVariables.Items[FCurrentIndex]:=FCurrentVariable.Name;
LBVariables.Sorted:=True;
except
On E : Exception do
begin