- fixed issue #386 - multiple Cut operation on a edited object created a crash due of the bounds() method

This commit is contained in:
Marius Stanciu
2020-04-05 21:50:32 +03:00
committed by Marius
parent fdd5344581
commit 139baaff64
3 changed files with 17 additions and 3 deletions

View File

@@ -3520,7 +3520,7 @@ class App(QtCore.QObject):
# update the geo object options so it is including the bounding box values
try:
xmin, ymin, xmax, ymax = edited_obj.bounds()
xmin, ymin, xmax, ymax = edited_obj.bounds(flatten=True)
edited_obj.options['xmin'] = xmin
edited_obj.options['ymin'] = ymin
edited_obj.options['xmax'] = xmax