diff options
| author | Felipe Corrêa da Silva Sanches | 2015-09-28 12:40:00 -0300 | 
|---|---|---|
| committer | Adrien Tétar | 2015-09-29 11:47:49 +0200 | 
| commit | 51a80dc8ce5cb7f41111b2cbc3b0fb53f1966016 (patch) | |
| tree | dd1370ea2f9c29258d984ae937d7c9161a0c90d2 /Lib/defconQt/glyphView.py | |
| parent | 57aa7ed59d8e067717e965ef57f7f68a015fc2f3 (diff) | |
| download | trufont-51a80dc8ce5cb7f41111b2cbc3b0fb53f1966016.tar.bz2 | |
generating multiple paths when dealing with multiple components
Diffstat (limited to 'Lib/defconQt/glyphView.py')
| -rw-r--r-- | Lib/defconQt/glyphView.py | 5 | 
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() | 
