summaryrefslogtreecommitdiff
path: root/lib/simulator.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-09-10 23:06:18 -0400
committerLex Neva <github.com@lexneva.name>2018-09-10 23:06:18 -0400
commit7b5995c7052c8fe2b67944fea75b8ec543464be1 (patch)
tree36fe532edb454f0bbe2720b6301b1bf0e655a7f0 /lib/simulator.py
parent9360e9b9304a6b9a50c5586a04ebf0a13859d5fe (diff)
fix logic
Diffstat (limited to 'lib/simulator.py')
-rw-r--r--lib/simulator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/simulator.py b/lib/simulator.py
index 8f316be3..4408adb8 100644
--- a/lib/simulator.py
+++ b/lib/simulator.py
@@ -373,7 +373,7 @@ class DrawingPanel(wx.Panel):
def choose_zoom_and_pan(self, event=None):
# ignore if called before we load the stitch plan
- if not self.width or not self.height:
+ if not self.width and not self.height:
return
panel_width, panel_height = self.GetClientSize()