From 52ca505cb9a68db3d465e445e40cb73eab8fad98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20T=C3=A9tar?= Date: Sun, 27 Sep 2015 15:14:28 +0200 Subject: [PATCH 1/2] objectsDefcon: typo --- Lib/robofab/objects/objectsDefcon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/robofab/objects/objectsDefcon.py b/Lib/robofab/objects/objectsDefcon.py index 3cf502bce..8009a22db 100644 --- a/Lib/robofab/objects/objectsDefcon.py +++ b/Lib/robofab/objects/objectsDefcon.py @@ -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 From ff8bd252d4767c58660ac65af12193ab48a5cd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20T=C3=A9tar?= Date: Sun, 27 Sep 2015 16:39:30 +0200 Subject: [PATCH 2/2] ufoLib: previousFormatVersion None-check --- Lib/ufoLib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ufoLib/__init__.py b/Lib/ufoLib/__init__.py index a1add830b..f3e03cfd1 100755 --- a/Lib/ufoLib/__init__.py +++ b/Lib/ufoLib/__init__.py @@ -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: