- fixed an error in the Gerber Editor

This commit is contained in:
Marius Stanciu
2020-10-30 20:47:06 +02:00
committed by Marius
parent fdfa6a22be
commit 3e1e12f42c
3 changed files with 3 additions and 2 deletions

View File

@@ -4081,7 +4081,7 @@ class AppGerberEditor(QtCore.QObject):
log.warning("Found %d clear polygons." % len(global_clear_geo))
if global_clear_geo:
global_clear_geo = MultiPolygon(global_clear_geo)
global_clear_geo = unary_union(global_clear_geo)
if isinstance(global_clear_geo, Polygon):
global_clear_geo = [global_clear_geo]