summaryrefslogtreecommitdiff
path: root/cad/src/temporary_commands
diff options
context:
space:
mode:
authorNinad Sathaye <ninad@nanorex.com>2008-09-02 16:37:24 +0000
committerNinad Sathaye <ninad@nanorex.com>2008-09-02 16:37:24 +0000
commitbbbdb4a1b4e5ba3c7a8f4633d85980495c07b6de (patch)
treea8b0546e2081c0a35a3f26448ec74ddea0e39fc6 /cad/src/temporary_commands
parent7a539a29ac611e12757dcaa89f40996c4899ba86 (diff)
downloadnanoengineer-theirix-bbbdb4a1b4e5ba3c7a8f4633d85980495c07b6de.tar.gz
nanoengineer-theirix-bbbdb4a1b4e5ba3c7a8f4633d85980495c07b6de.zip
fixed bug in zoom to area when USE_COMMAND_STACK is False
Diffstat (limited to 'cad/src/temporary_commands')
-rwxr-xr-xcad/src/temporary_commands/ZoomToAreaMode.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/cad/src/temporary_commands/ZoomToAreaMode.py b/cad/src/temporary_commands/ZoomToAreaMode.py
index 810d98450..be1c93b91 100755
--- a/cad/src/temporary_commands/ZoomToAreaMode.py
+++ b/cad/src/temporary_commands/ZoomToAreaMode.py
@@ -263,16 +263,20 @@ class ZoomToAreaMode(TemporaryCommand_Overdrawing):
return
def command_enter_misc_actions(self):
- super(ZoomToAreaMode, self).command_enter_misc_actions()
- if DEBUG_ZOOM:
- print "DEBUG_ZOOM: toggle on the Zoom Tool icon"
+ if USE_COMMAND_STACK:
+ super(ZoomToAreaMode, self).command_enter_misc_actions()
+ if DEBUG_ZOOM:
+ print "DEBUG_ZOOM: toggle on the Zoom Tool icon"
+
self.win.zoomToAreaAction.setChecked(1) # toggle on the Zoom Tool icon
def command_exit_misc_actions(self):
if DEBUG_ZOOM:
print "DEBUG_ZOOM: toggle off the Zoom Tool icon" # i suspect this recurses into Done and causes a bug
self.win.zoomToAreaAction.setChecked(0) # toggle off the Zoom Tool icon
- super(ZoomToAreaMode, self).command_exit_misc_actions()
+
+ if USE_COMMAND_STACK:
+ super(ZoomToAreaMode, self).command_exit_misc_actions()
def command_will_exit(self):
super(ZoomToAreaMode, self).command_will_exit()