diff options
Diffstat (limited to 'Lib/defconQt/groupsView.py')
| -rw-r--r-- | Lib/defconQt/groupsView.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/defconQt/groupsView.py b/Lib/defconQt/groupsView.py index a1600b8..6a15541 100644 --- a/Lib/defconQt/groupsView.py +++ b/Lib/defconQt/groupsView.py @@ -34,9 +34,11 @@ class GroupStackWidget(QWidget): def __init__(self, font, glyphs=[], parent=None): super(GroupStackWidget, self).__init__(parent) self.ascender = font.info.ascender + if self.ascender is None: self.ascender = 750 self.glyphs = glyphs self.maxWidth = max(glyph.width for glyph in self.glyphs) if len(self.glyphs) else 300 self.upm = font.info.unitsPerEm + if self.upm is None: self.upm = 1000 self.padding = 10 self.alignRight = False @@ -238,6 +240,9 @@ class GroupsWindow(QWidget): currentGroup = currentGroup.text() glyphNames = event.mimeData().text().split(" ") for gName in glyphNames: + # TODO: should we accept template glyphs here? + if self.font[gName].template: + continue # Due to defcon limitations, we must fetch and update for the # notification to pass through currentGroupList = self.font.groups[currentGroup] |
