- fixed bug in Set Origin function

This commit is contained in:
Marius Stanciu
2019-02-24 17:10:01 +02:00
committed by Marius S
parent 8acb3b782d
commit a25fc1e88c
3 changed files with 14 additions and 2 deletions

View File

@@ -4102,8 +4102,14 @@ class App(QtCore.QObject):
for obj in self.collection.get_list():
obj.offset((x,y))
self.object_changed.emit(obj)
# obj.plot()
self.plot_all(zoom=False)
obj.plot()
# Update the object bounding box options
a, b, c, d = obj.bounds()
obj.options['xmin'] = a
obj.options['ymin'] = b
obj.options['xmax'] = c
obj.options['ymax'] = d
# self.plot_all(zoom=False)
self.inform.emit('[success] Origin set ...')
self.plotcanvas.vis_disconnect('mouse_press', self.on_set_zero_click)
self.should_we_save = True