Commit 80186766 authored by justjason's avatar justjason

Fix issue on pen change

parent c97a3ae0
......@@ -332,7 +332,7 @@ class hpglEncoder(object):
y = 0
# select correct pen
if self.lastPen != pen:
self.hpgl += ';SP%d' % pen
self.hpgl += ';PU;SP%d' % pen
# do not repeat command
if command == 'PD' and self.lastPoint[0] == 'PD' and self.lastPen == pen:
self.hpgl += ',%d,%d' % (x, y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment