commit
6f8a2d9b28
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user