Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
83c79b6a2a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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['center_northing'] = cn
             self.Map.region['ewres'] = (newreg['e'] - newreg['w']) / self.Map.width
             self.Map.region['ewres'] = (newreg['e'] - newreg['w']) / self.Map.width
             self.Map.region['nsres'] = (newreg['n'] - newreg['s']) / self.Map.height
             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()
                 self.Map.AlignExtentFromDisplay()
             else:
             else:
                 for k in ('n', 's', 'e', 'w'):
                 for k in ('n', 's', 'e', 'w'):