- fixed a possible problem in generating bounds value for a solid_geometry that have empty geo elements

This commit is contained in:
Marius Stanciu 2020-06-09 13:10:26 +03:00 committed by Marius
parent 24d639e1de
commit 99e274c82d
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
=================================================
9.06.2020
- fixed a possible problem in generating bounds value for a solid_geometry that have empty geo elements
8.06.2020
- minor changes in the way that the tools are installed and connected

View File

@ -652,6 +652,12 @@ class Geometry(object):
gmaxx = max(gmaxx, maxx_)
gmaxy = max(gmaxy, maxy_)
else:
try:
if k.is_empty:
continue
except Exception:
pass
minx_, miny_, maxx_, maxy_ = bounds_rec(k)
gminx = min(gminx, minx_)
gminy = min(gminy, miny_)