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

View File

@ -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')