diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2019-02-16 17:07:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-16 17:07:34 -0500 |
| commit | 2ab4c451e8042868b2516a6b3fe1f60836f27ffe (patch) | |
| tree | 0ce616ac57e6a2aa507461486233c71373467c9a /lib/gui/simulator.py | |
| parent | bd6e4d9d32fd314b66f3c5d798c7151bf543d07f (diff) | |
| parent | fa3236372bcee28f4aaa78da47b68c5d7f32cca4 (diff) | |
tons of bug fixes (#364)
bug fixes
Diffstat (limited to 'lib/gui/simulator.py')
| -rw-r--r-- | lib/gui/simulator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index 0eed18c9..e0d78983 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -385,8 +385,8 @@ class DrawingPanel(wx.Panel): self.go() def choose_zoom_and_pan(self, event=None): - # ignore if called before we load the stitch plan - if not self.width and not self.height: + # ignore if EVT_SIZE fired before we load the stitch plan + if not self.width and not self.height and event is not None: return panel_width, panel_height = self.GetClientSize() |
