Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Menu
Projects
Groups
Snippets
Get a free trial
Sign up
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
Inkscape
extensions
Commits
80186766
Commit
80186766
authored
Jul 02, 2020
by
justjason
Browse files
Fix issue on pen change
parent
c97a3ae0
Changes
1
Hide whitespace changes
Inline
Side-by-side
hpgl_encoder.py
View file @
80186766
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment