Changeset 225

Show
Ignore:
Timestamp:
02/20/10 08:11:35 (2 years ago)
Author:
erik
Message:

Removes a print statement during saving.
Write layer contents during saving. New layers might have been added.
Finally, and perhaps the most serious: setting a glyph.unicode = None was ignored. This made it impossible to actually set a unicode value to None. I'm not sure how this could have been unnoticed until now. Should be applied to the trunk as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/ufo3/Lib/robofab/objects/objectsRF.py

    r223 r225  
    394394                # save. 
    395395                # XXX add layer support 
    396                 print "ufo3 save!" 
    397396                from robofab.ufoLib import UFOWriter 
    398397                from robofab.tools.fontlabFeatureSplitter import splitFeaturesForFontLab 
     
    536535                                        glyph._saveToGlyphSet(self._layerGlyphsets[layerName], glyphName=glyphName, force=saveAs) 
    537536                                self._layerGlyphsets[layerName].writeContents() 
     537                        writer.writeLayerContents(self._layerGlyphsets.keys()) 
    538538                                 
    539539                # only blindly stop if the user says to 
     
    795795                                uni.insert(0, uni.pop(uni.index(value))) 
    796796                                self.unicodes = uni 
     797                else: 
     798                        self._unicodes = [] 
     799                        self._hasChanged() 
    797800                 
    798801        unicode = property(_get_unicode, _set_unicode, doc="first unicode value for the glyph")