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

View File

@ -128,11 +128,13 @@ class SplitAndBreakBezierAtT(inkex.EffectExtension):
breakAparts = self.breakContours(element)
if len(breakAparts) > 0:
pathStart = breakAparts[0]
if len(breakAparts) > 1:
pathEnd = breakAparts[1]
if self.options.keep_start is False:
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: