- reverted the previous changes to object collection; it is better to create empty methods in FlatCAMScript and FlatCAMDocument objects

This commit is contained in:
Marius Stanciu
2020-05-17 21:56:44 +03:00
committed by Marius
parent c1941bc882
commit 4cfecfa70a
7 changed files with 50 additions and 15 deletions

View File

@@ -3080,7 +3080,10 @@ class App(QtCore.QObject):
:return: None
"""
xmin, ymin, xmax, ymax = obj.bounds()
try:
xmin, ymin, xmax, ymax = obj.bounds()
except TypeError:
return
obj.options['xmin'] = xmin
obj.options['ymin'] = ymin
obj.options['xmax'] = xmax