- fixed an error in Geo Editor when trying to save an empty Geometry

- in Preferences made sure that clicking the Restore Defaults will update the values in the Preferences Tab
- some changes in the Tools visibility in the Tools ToolBar
This commit is contained in:
Marius Stanciu
2020-11-25 14:24:47 +02:00
committed by Marius
parent 88509cd9a7
commit 4cc88ec5fe
5 changed files with 29 additions and 7 deletions

View File

@@ -4872,11 +4872,14 @@ class AppGeoEditor(QtCore.QObject):
new_geo = linemerge(new_geo)
fcgeometry.solid_geometry.append(new_geo)
bounds = fcgeometry.bounds()
fcgeometry.options['xmin'] = bounds[0]
fcgeometry.options['ymin'] = bounds[1]
fcgeometry.options['xmax'] = bounds[2]
fcgeometry.options['ymax'] = bounds[3]
try:
bounds = fcgeometry.bounds()
fcgeometry.options['xmin'] = bounds[0]
fcgeometry.options['ymin'] = bounds[1]
fcgeometry.options['xmax'] = bounds[2]
fcgeometry.options['ymax'] = bounds[3]
except Exception:
pass
self.deactivate()