aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/objects/defcon.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-31 16:41:17 +0100
committerAdrien Tétar2015-10-31 16:41:17 +0100
commit6135470d0ada8686ace9d44ace4e103fe2fd5234 (patch)
treeaaca30f1c2d51e12a99e6fe480a5ef6cac612f05 /Lib/defconQt/objects/defcon.py
parent8ee74e400b2f8c41f7c16918c340a4561e98d8bd (diff)
downloadtrufont-6135470d0ada8686ace9d44ace4e103fe2fd5234.tar.bz2
defcon: newGlyph returns the glyph, glyphView: preserve currentTool
Diffstat (limited to 'Lib/defconQt/objects/defcon.py')
-rw-r--r--Lib/defconQt/objects/defcon.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/defconQt/objects/defcon.py b/Lib/defconQt/objects/defcon.py
index e9c3470..496f1c6 100644
--- a/Lib/defconQt/objects/defcon.py
+++ b/Lib/defconQt/objects/defcon.py
@@ -19,9 +19,7 @@ class TFont(Font):
if not override:
if name in self:
return None
- # XXX(defcon): newGlyph should return the glyph
- self.newGlyph(name)
- glyph = self[name]
+ glyph = self.newGlyph(name)
glyph.width = width
# TODO: list ought to be changeable from AGL2UV
if addUnicode: