diff options
| author | Adrien Tétar | 2015-11-08 16:55:24 +0100 | 
|---|---|---|
| committer | Adrien Tétar | 2015-11-08 16:58:24 +0100 | 
| commit | e76c9c366ac30d6fb5941531810dcbe12bbeed96 (patch) | |
| tree | 5013b9aaf4d3e8050f5490e4f0ec746b63bc5628 /Lib/defconQt/glyphView.py | |
| parent | 4f484fb40a051171edfd7c0c0ccabdae8089a223 (diff) | |
| download | trufont-e76c9c366ac30d6fb5941531810dcbe12bbeed96.tar.bz2 | |
glyphView: fix knife crash
Diffstat (limited to 'Lib/defconQt/glyphView.py')
| -rw-r--r-- | Lib/defconQt/glyphView.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py index 850a216..b8241e0 100644 --- a/Lib/defconQt/glyphView.py +++ b/Lib/defconQt/glyphView.py @@ -1832,6 +1832,9 @@ class GlyphScene(QGraphicsScene):          for dot in self._knifeDots:              self.removeItem(dot)          self._knifeDots = [] +        # no-move clicks +        if self._cachedIntersections is None: +            return          # reverse so as to not invalidate our cached segment indexes          for loc, ts in reversed(list(self._cachedIntersections.items())):              contour, index = loc | 
