- fixed bugs in Paint Tool when painting single polygon

This commit is contained in:
Marius Stanciu
2019-11-25 18:44:38 +02:00
parent 2260bee4a5
commit cf3f7687c9
3 changed files with 7 additions and 4 deletions

View File

@@ -1126,7 +1126,8 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
self.app.tool_shapes.clear(update=True)
if self.poly_dict:
self.isolate(iso_type=self.iso_type, geometry=self.poly_list)
poly_list = self.poly_dict.values()
self.isolate(iso_type=self.iso_type, geometry=poly_list)
else:
self.app.inform.emit('[ERROR_NOTCL] %s' % _("List of single polygons is empty. Aborting."))