fix pointy paths in create links

This commit is contained in:
Mario Voigt 2021-10-16 16:12:05 +02:00
parent 68cf9bd6e6
commit 062317c97f
1 changed files with 5 additions and 4 deletions

View File

@ -280,10 +280,11 @@ class LinksCreator(inkex.EffectExtension):
length = length - dash
idash = (idash + 1) % len(dashes)
dash = dashes[idash]
if idash % 2:
new.append([sub[i]])
else:
new[-1].append(sub[i])
if sub[-1] != sub[i]: #avoid pointy paths
if idash % 2:
new.append([sub[i]])
else:
new[-1].append(sub[i])
i += 1
style.pop('stroke-dasharray')
element.pop('sodipodi:type')