summaryrefslogtreecommitdiff
path: root/misc/pylib/booleanOperations/flatten.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'misc/pylib/booleanOperations/flatten.pyx')
-rw-r--r--misc/pylib/booleanOperations/flatten.pyx5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/pylib/booleanOperations/flatten.pyx b/misc/pylib/booleanOperations/flatten.pyx
index 85b54a03d..606b2005a 100644
--- a/misc/pylib/booleanOperations/flatten.pyx
+++ b/misc/pylib/booleanOperations/flatten.pyx
@@ -3,6 +3,7 @@ import math
from fontTools.misc import bezierTools
from fontTools.pens.basePen import decomposeQuadraticSegment
import pyclipper
+from .exceptions import OpenContourError
"""
To Do:
@@ -343,7 +344,8 @@ class ContourPointDataPen:
pass
def addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs):
- assert segmentType != "move"
+ if segmentType == "move":
+ raise OpenContourError("Unhandled open contour")
if not self._foundStartingPoint and segmentType is not None:
kwargs['startingPoint'] = self._foundStartingPoint = True
data = InputPoint(
@@ -373,7 +375,6 @@ def _prepPointsForSegments(points):
point = points.pop()
points.insert(0, point)
continue
- break
def _copyPoints(points):