[ufo] Clear existing contours when adding new ones

This commit is contained in:
James Godfrey-Kittle 2016-04-04 15:30:39 -07:00
parent 17e25e8ec9
commit b8fa142bef

View File

@ -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':