aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphView.py
diff options
context:
space:
mode:
authorFelipe Corrêa da Silva Sanches2015-09-28 12:40:00 -0300
committerAdrien Tétar2015-09-29 11:47:49 +0200
commit51a80dc8ce5cb7f41111b2cbc3b0fb53f1966016 (patch)
treedd1370ea2f9c29258d984ae937d7c9161a0c90d2 /Lib/defconQt/glyphView.py
parent57aa7ed59d8e067717e965ef57f7f68a015fc2f3 (diff)
downloadtrufont-51a80dc8ce5cb7f41111b2cbc3b0fb53f1966016.tar.bz2
generating multiple paths when dealing with multiple components
Diffstat (limited to 'Lib/defconQt/glyphView.py')
-rw-r--r--Lib/defconQt/glyphView.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py
index 1e05a99..88073ae 100644
--- a/Lib/defconQt/glyphView.py
+++ b/Lib/defconQt/glyphView.py
@@ -1284,8 +1284,9 @@ class GlyphView(QGraphicsView):
scene._outlineItem.setZValue(-995)
scene._glyphObject = self._glyph
# components
- path = self._glyph.getRepresentation("defconQt.OnlyComponentsQPainterPath")
- scene.addPath(path, brush=QBrush(componentFillColor))
+ paths = self._glyph.getRepresentation("defconQt.OnlyComponentsQPainterPath")
+ for path in paths:
+ scene.addPath(path, brush=QBrush(componentFillColor))
def addPoints(self):
scene = self.scene()