Fix bug when displaying errors when generating textual program in standalone mode
--- a/PLCOpenEditor.py Thu Apr 21 17:52:46 2011 +0200
+++ b/PLCOpenEditor.py Tue May 24 19:37:14 2011 +0200
@@ -2661,7 +2661,7 @@
program, errors, warnings = self.Controler.GenerateProgram(filepath)
message_text += "".join([_("warning: %s\n") for warning in warnings])
if len(errors) > 0:
- message_text += "".join([_("error: %s\n") for warning in warnings])
+ message_text += "".join([_("error: %s\n") for error in errors])
message_text += _("Can't generate program to file %s!")%filepath
header, icon = _("Error"), wx.ICON_ERROR
else: