- fixed bug in Cutout Plugin that when no object is loaded and the Generate Rectangular Geometry is clicked, the app will hard crash

This commit is contained in:
Marius Stanciu
2021-08-26 16:54:11 +03:00
parent 90584e1d37
commit c8763f9c8f
2 changed files with 2 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ CHANGELOG for FlatCAM beta
- in Preferences the language names are in the native language - in Preferences the language names are in the native language
- fixed a Qt6 derived issue where dragging tabs outside the app crashed the app - fixed a Qt6 derived issue where dragging tabs outside the app crashed the app
- updated the Chinese translation, by 俊霄 余 - updated the Chinese translation, by 俊霄 余
- fixed bug in Cutout Plugin that when no object is loaded and the Generate Rectangular Geometry is clicked, the app will hard crash
25.08.2021 25.08.2021

View File

@@ -1132,6 +1132,7 @@ class CutOut(AppTool):
if cutout_obj is None: if cutout_obj is None:
self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Object not found"), str(name))) self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Object not found"), str(name)))
return
dia = float(self.ui.dia.get_value()) dia = float(self.ui.dia.get_value())
if 0 in {dia}: if 0 in {dia}: