Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 16765, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/data/OpenPLC_Editor/editor/editors/Viewer.py", line 2672, in AddNewConnection
if dialog.ShowModal() == wx.ID_OK
File "/data/OpenPLC_Editor/editor/dialogs/ConnectionDialog.py", line 151, in GetValues
values["width"], values["height"] = self.Element.GetSize()
AttributeError: 'NoneType' object has no attribute 'GetSize'
Optimize the algorithm of finding nearest connector
I find there is an efficiency problem in function at file
GraphicCommons.py
. When there are too many connectors, sorting them is a waste of time.fix a bug
when add a new connector there is an error: