small fix in join paths
This commit is contained in:
parent
675a71af69
commit
6b27a2fee8
@ -131,6 +131,7 @@ class JoinPathsOptimEffect(inkex.Effect):
|
|||||||
parts = paths[key]
|
parts = paths[key]
|
||||||
# ~ parts = getPartsFromCubicSuper(cspath)
|
# ~ parts = getPartsFromCubicSuper(cspath)
|
||||||
start = parts[0][0][0]
|
start = parts[0][0][0]
|
||||||
|
try:
|
||||||
elem = self.svg.selected[key]
|
elem = self.svg.selected[key]
|
||||||
|
|
||||||
if(len(newParts) == 0):
|
if(len(newParts) == 0):
|
||||||
@ -150,6 +151,8 @@ class JoinPathsOptimEffect(inkex.Effect):
|
|||||||
parent = elem.getparent()
|
parent = elem.getparent()
|
||||||
idx = parent.index(elem)
|
idx = parent.index(elem)
|
||||||
parent.remove(elem)
|
parent.remove(elem)
|
||||||
|
except:
|
||||||
|
pass #elem might come from group item - in this case we need to ignore it
|
||||||
|
|
||||||
newElem = copy.copy(firstElem)
|
newElem = copy.copy(firstElem)
|
||||||
oldId = firstElem.get('id')
|
oldId = firstElem.get('id')
|
||||||
|
Reference in New Issue
Block a user