浏览代码

wxGUI: https://trac.osgeo.org/grass/ticket/1457 (Zoom in Georectify Does not Work)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48620 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
83c79b6a2a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/gui_modules/mapdisp_window.py

+ 2 - 1
gui/wxpython/gui_modules/mapdisp_window.py

@@ -1648,7 +1648,8 @@ class BufferedWindow(MapWindow, wx.Window):
             self.Map.region['center_northing'] = cn
             self.Map.region['ewres'] = (newreg['e'] - newreg['w']) / self.Map.width
             self.Map.region['nsres'] = (newreg['n'] - newreg['s']) / self.Map.height
-            if self.parent.statusbarWin['alignExtent'].IsChecked():
+            if 'alignExtent' not in self.parent.statusbarWin or \
+                    self.parent.statusbarWin['alignExtent'].IsChecked():
                 self.Map.AlignExtentFromDisplay()
             else:
                 for k in ('n', 's', 'e', 'w'):