- fixed bug in Geometry Editor in buffer_int() function that created an Circular Reference Error when applying buffer interior on a geometry.

This commit is contained in:
Marius Stanciu
2019-04-06 01:02:59 +03:00
parent e8a0fcaef1
commit 1307026d83
3 changed files with 14 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ class App(QtCore.QObject):
# Version
version = 8.913
version_date = "2019/03/25"
version_date = "2019/04/12"
beta = True
# current date now
@@ -2169,8 +2169,9 @@ class App(QtCore.QObject):
edited_obj.options['ymin'] = ymin
edited_obj.options['xmax'] = xmax
edited_obj.options['ymax'] = ymax
except AttributeError:
except AttributeError as e:
self.inform.emit(_("[WARNING] Object empty after edit."))
log. debug("App.editor2object() --> Geometry --> %s" % str(e))
elif isinstance(edited_obj, FlatCAMGerber):
obj_type = "Gerber"
@@ -2186,8 +2187,9 @@ class App(QtCore.QObject):
edited_obj.options['ymin'] = ymin
edited_obj.options['xmax'] = xmax
edited_obj.options['ymax'] = ymax
except AttributeError:
except AttributeError as e:
self.inform.emit(_("[WARNING] Object empty after edit."))
log.debug("App.editor2object() --> Gerber --> %s" % str(e))
elif isinstance(edited_obj, FlatCAMExcellon):
obj_type = "Excellon"