Просмотр исходного кода

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 лет назад
Родитель
Сommit
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'):