fix errors in split and break bezier at t extension

This commit is contained in:
Mario Voigt 2021-06-03 02:02:04 +02:00
parent 04b1071201
commit ecbc8323f9
1 changed files with 6 additions and 4 deletions

View File

@ -128,11 +128,13 @@ class SplitAndBreakBezierAtT(inkex.EffectExtension):
breakAparts = self.breakContours(element)
pathStart = breakAparts[0]
pathEnd = breakAparts[1]
if self.options.keep_start is False:
if len(breakAparts) > 0:
pathStart = breakAparts[0]
if len(breakAparts) > 1:
pathEnd = breakAparts[1]
if self.options.keep_start is False and len(breakAparts) > 0:
pathStart.delete()
if self.options.keep_end is False:
if self.options.keep_end is False and len(breakAparts) > 1:
pathEnd.delete()
else: