- fixed Geometry Editor to work in legacy graphic engine

- fixed Excellon Editor to work in legacy graphic engine
This commit is contained in:
Marius Stanciu
2019-09-22 00:05:35 +03:00
committed by Marius
parent 399b0b45c6
commit 63b261685d
6 changed files with 126 additions and 70 deletions

View File

@@ -774,6 +774,7 @@ class ShapeCollectionLegacy():
def redraw(self):
path_num = 0
try:
obj_type = self.obj.kind
except AttributeError:
@@ -782,7 +783,7 @@ class ShapeCollectionLegacy():
for element in self._shapes:
if obj_type == 'excellon':
# Plot excellon (All polygons?)
if self.obj.options["solid"]:
if self.obj.options["solid"] and isinstance(self._shapes[element]['shape'], Polygon):
patch = PolygonPatch(self._shapes[element]['shape'],
facecolor="#C40000",
edgecolor="#750000",