Skip to content

Commit 46739b6

Browse files
Fix to exclude unnamed components from PyForm file constructor
1 parent e009e33 commit 46739b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)