- small fixes: selected object in Project used to ask twice for UI build; if scale factor in Object UI is 1 do nothing as there is no point in scaling with a factor of 1

This commit is contained in:
Marius Stanciu
2019-12-08 16:16:02 +02:00
committed by Marius
parent 1b37b5a487
commit 2baae550b5
4 changed files with 8 additions and 4 deletions

View File

@@ -261,9 +261,13 @@ class FlatCAMObj(QtCore.QObject):
self.app.worker_task.emit({'fcn': worker_task, 'params': []})
def on_scale_button_click(self):
log.debug("FlatCAMObj.on_scale_button_click()")
self.read_form()
factor = self.ui.scale_entry.get_value()
# if factor is 1.0 do nothing, there is no point in scaling with a factor of 1.0
if factor == 1.0:
return
log.debug("FlatCAMObj.on_scale_button_click()")
def worker_task():
with self.app.proc_container.new(_("Scaling...")):