From b8fa142befacb4672f03d3e741cd339c0d217ccb Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Mon, 4 Apr 2016 15:30:39 -0700 Subject: [PATCH] [ufo] Clear existing contours when adding new ones --- Lib/cu2qu/ufo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/cu2qu/ufo.py b/Lib/cu2qu/ufo.py index fad3d34ba..d1776361b 100644 --- a/Lib/cu2qu/ufo.py +++ b/Lib/cu2qu/ufo.py @@ -84,6 +84,7 @@ def _get_segments(glyph): def _set_segments(glyph, segments): """Draw segments as extracted by GetSegmentsPen back to a glyph.""" + glyph.clearContours() pen = glyph.getPen() for tag, args in segments: if tag == 'move':