fix pointy paths in create links
This commit is contained in:
parent
68cf9bd6e6
commit
062317c97f
@ -280,10 +280,11 @@ class LinksCreator(inkex.EffectExtension):
|
|||||||
length = length - dash
|
length = length - dash
|
||||||
idash = (idash + 1) % len(dashes)
|
idash = (idash + 1) % len(dashes)
|
||||||
dash = dashes[idash]
|
dash = dashes[idash]
|
||||||
if idash % 2:
|
if sub[-1] != sub[i]: #avoid pointy paths
|
||||||
new.append([sub[i]])
|
if idash % 2:
|
||||||
else:
|
new.append([sub[i]])
|
||||||
new[-1].append(sub[i])
|
else:
|
||||||
|
new[-1].append(sub[i])
|
||||||
i += 1
|
i += 1
|
||||||
style.pop('stroke-dasharray')
|
style.pop('stroke-dasharray')
|
||||||
element.pop('sodipodi:type')
|
element.pop('sodipodi:type')
|
||||||
|
Reference in New Issue
Block a user