Commit 16baab9
committed
FIX: add check if the renderer exists
There exists a path where paintEvent can be called before the first time
that `draw` has been called. This results in an exception because the
call to `FigureCanvasAgg.draw(self)` is what create the renderer
attribute on the canvas.1 parent b9bc7d1 commit 16baab9
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments