Skip to content

Commit

Permalink
micro fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed May 14, 2017
1 parent 2a8f4d6 commit c5a7d59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/formmain_py_api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3900,7 +3900,7 @@ begin
end;


//dlg_proc(id_dlg, id_action, text="", index=-1)
//dlg_proc(id_dialog, id_action, prop='', index=-1, index2=-1, name='')
function Py_dlg_proc(Self, Args: PPyObject): PPyObject; cdecl;
var
Form: TFormDummy;
Expand All @@ -3911,6 +3911,7 @@ var
Ctl: TControl;
Pnt: TPoint;
Num64: Int64;
i: integer;
begin
with GetPythonEngine do
begin
Expand Down Expand Up @@ -4033,8 +4034,8 @@ begin

DLG_CTL_DELETE_ALL:
begin
for NIndex:= Form.ControlCount-1 downto 0 do
Form.Controls[NIndex].Free;
for i:= Form.ControlCount-1 downto 0 do
Form.Controls[i].Free;
Result:= ReturnNone;
end;

Expand Down

0 comments on commit c5a7d59

Please sign in to comment.