Skip to content

Commit 29ae477

Browse files
authored
Merge pull request #20 from marcobreveglieri/patch-1
Fix to exclude unnamed components from PyForm file constructor
2 parents a0ee2a0 + 46739b6 commit 29ae477

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Producer/PythonTools.Producer.AbstractForm.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ procedure TAbstractFormProducer.GeneratePyFormFile(const AStream: TStream;
122122
begin
123123
LProps := String.Empty;
124124
for LComp in AFormModel.ExportedComponents do begin
125+
if LComp.ComponentName.IsEmpty() then
126+
Continue;
125127
if not LProps.IsEmpty() then
126128
LProps := LProps
127129
+ sLineBreak

0 commit comments

Comments
 (0)