Skip to content

Commit

Permalink
Fixed blanking when editing formulas alias in view definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tvannini committed May 7, 2018
1 parent da6aa5a commit a58a115
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,10 @@ procedure Tdm_form.t_selectcon_nomeSetText(Sender: TField; const Text: string);
progr : integer;
r : TRegExpr;
begin
newName := formatName(Text);
// _______________________________________________ Changing existing alias ___
if (Sender.AsString <> '') and (Sender.AsString <> Text) then
if (Sender.AsString <> '') and (Sender.AsString <> newName) then
try
newName := formatName(Text);
t_operazioni.DisableControls;
t_espressioni.DisableControls;
t_controlliform.DisableControls;
Expand Down Expand Up @@ -1209,7 +1209,6 @@ procedure Tdm_form.t_selectcon_nomeSetText(Sender: TField; const Text: string);
end;
t_reportfield.MasterSource:=ds_report;


finally
t_operazioni.EnableControls;
t_espressioni.EnableControls;
Expand Down

0 comments on commit a58a115

Please sign in to comment.