Commit c67a944
committed
Don't call draw() twice when Qt canvas first appears.
Right now the resizeEvent triggered from within the paintEvent will
itself trigger a second paintEvent. Adding a print to draw() shows that
this patch ensures that draw() only gets called once the first time the
canvas appears.1 parent df6acf9 commit c67a944
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
0 commit comments