- few bugs solved regarding the newly created empty objects

This commit is contained in:
Marius Stanciu
2019-12-06 21:53:03 +02:00
committed by Marius
parent 0d09f10a88
commit d683402884
3 changed files with 8 additions and 3 deletions

View File

@@ -307,9 +307,12 @@ class Properties(FlatCAMTool):
area_chull = None
log.debug("Properties.addItems() --> %s" % str(e))
if self.app.defaults['units'].lower() == 'mm':
if self.app.defaults['units'].lower() == 'mm' and area_chull:
area_chull = area_chull / 100
if area_chull is None:
area_chull = 0
self.calculations_finished.emit(area, length, width, area_chull, copper_area, dims)
self.app.worker_task.emit({'fcn': job_thread, 'params': [obj]})