Merge pull request #48 from adrientetar/patch-1

ufoLib: fixes
This commit is contained in:
Erik van Blokland 2015-09-27 21:27:26 +02:00
commit 6f8a2d9b28
2 changed files with 2 additions and 2 deletions

View File

@ -824,7 +824,7 @@ class RGlyph(BaseGlyph):
# Metrics
def _get_box(self):
bounds = self._obejct.bounds
bounds = self._object.bounds
if bounds is None:
bounds = (0, 0, 0, 0)
return bounds

View File

@ -593,7 +593,7 @@ class UFOWriter(object):
raise UFOLibError("The UFO located at this path is a higher version (%d) than the version (%d) that is trying to be written. This is not supported." % (previousFormatVersion, formatVersion))
# handle the layer contents
self.layerContents = {}
if previousFormatVersion >= 3:
if previousFormatVersion is not None and previousFormatVersion >= 3:
# already exists
self._readLayerContents()
else: