From 46739b6ce9b6d48568d62178895f54030c1f0bc9 Mon Sep 17 00:00:00 2001 From: Marco Breveglieri Date: Wed, 9 Apr 2025 22:49:35 +0200 Subject: [PATCH] Fix to exclude unnamed components from PyForm file constructor --- Source/Producer/PythonTools.Producer.AbstractForm.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Producer/PythonTools.Producer.AbstractForm.pas b/Source/Producer/PythonTools.Producer.AbstractForm.pas index 20efa28..974fb78 100644 --- a/Source/Producer/PythonTools.Producer.AbstractForm.pas +++ b/Source/Producer/PythonTools.Producer.AbstractForm.pas @@ -122,6 +122,8 @@ procedure TAbstractFormProducer.GeneratePyFormFile(const AStream: TStream; begin LProps := String.Empty; for LComp in AFormModel.ExportedComponents do begin + if LComp.ComponentName.IsEmpty() then + Continue; if not LProps.IsEmpty() then LProps := LProps + sLineBreak