summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()