commit
6f8a2d9b28
@ -824,7 +824,7 @@ class RGlyph(BaseGlyph):
|
|||||||
# Metrics
|
# Metrics
|
||||||
|
|
||||||
def _get_box(self):
|
def _get_box(self):
|
||||||
bounds = self._obejct.bounds
|
bounds = self._object.bounds
|
||||||
if bounds is None:
|
if bounds is None:
|
||||||
bounds = (0, 0, 0, 0)
|
bounds = (0, 0, 0, 0)
|
||||||
return bounds
|
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))
|
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
|
# handle the layer contents
|
||||||
self.layerContents = {}
|
self.layerContents = {}
|
||||||
if previousFormatVersion >= 3:
|
if previousFormatVersion is not None and previousFormatVersion >= 3:
|
||||||
# already exists
|
# already exists
|
||||||
self._readLayerContents()
|
self._readLayerContents()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user