bugfix in join paths

This commit is contained in:
Mario Voigt 2021-10-18 17:26:22 +02:00
parent f55b36b8a6
commit f0afc55363
1 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,9 @@ def getArrangedIds(pathMap, startPathId):
minDist = 9e+100 #A large float
closestId = None
np = pathMap[nextPathId]
if np[-1] == []:
inkex.utils.debug("Warning. Selection seems to contain invalid paths, e.g. pointy paths like M 54,54 Z. Please check and try again!")
exit(1)
npPts = [np[-1][-1][-1]]
if(len(orderPathIds) == 1):#compare both the ends for the first path
npPts.append(np[0][0][0])