summaryrefslogtreecommitdiff
path: root/gerberex/dxf.py
diff options
context:
space:
mode:
authoropiopan <opiopan@gmail.com>2019-03-31 18:16:34 +0900
committeropiopan <opiopan@gmail.com>2019-03-31 18:16:34 +0900
commit53816574a986722d7af26c5597248d9c96f31bd3 (patch)
treea2c5f2dc6f1da8f081eb173191ab456abb919b44 /gerberex/dxf.py
parent900d992fa3af05f93ac7a4cf717f28598e1a868d (diff)
downloadgerbonara-53816574a986722d7af26c5597248d9c96f31bd3.tar.gz
gerbonara-53816574a986722d7af26c5597248d9c96f31bd3.tar.bz2
gerbonara-53816574a986722d7af26c5597248d9c96f31bd3.zip
fix a minor issue
Diffstat (limited to 'gerberex/dxf.py')
-rw-r--r--gerberex/dxf.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gerberex/dxf.py b/gerberex/dxf.py
index e6eb971..e863238 100644
--- a/gerberex/dxf.py
+++ b/gerberex/dxf.py
@@ -259,7 +259,7 @@ class DxfPolylineStatement(DxfStatement):
if self.is_closed:
self.end = self.start
else:
- self.start = (self.entity.points[-1][0], self.entity.points[-1][1])
+ self.end = (self.entity.points[-1][0], self.entity.points[-1][1])
def to_gerber(self, settings=FileSettings(), pitch=0, width=0):
if pitch:
@@ -364,16 +364,14 @@ class DxfStatements(object):
def gerbers():
yield 'D{0}*'.format(self.dcode)
if self.draw_mode == DxfFile.DM_FILL:
+ yield 'G36*'
for statement in self.statements:
- yield 'G36*'
if isinstance(statement, DxfCircleStatement) or \
(isinstance(statement, DxfPolylineStatement) and statement.entity.is_closed):
yield statement.to_gerber(settings)
- yield 'G37*'
for path in self.paths:
- yield 'G36*'
yield path.to_gerber(settings)
- yield 'G37*'
+ yield 'G37*'
else:
for statement in self.statements:
yield statement.to_gerber(