瀏覽代碼

wxGUI: bugfix if gcp manager is active

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50058 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 年之前
父節點
當前提交
5bbd79ff83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/mapdisp/mapwindow.py

+ 1 - 1
gui/wxpython/mapdisp/mapwindow.py

@@ -598,7 +598,7 @@ class BufferedWindow(MapWindow, wx.Window):
         if not self.parent.IsStandalone() and \
         if not self.parent.IsStandalone() and \
                 self.parent.GetLayerManager().gcpmanagement:
                 self.parent.GetLayerManager().gcpmanagement:
             # -> georectifier (redraw GCPs)
             # -> georectifier (redraw GCPs)
-            if self.parent.GetMapToolbar():
+            if 'gcpdisp' in self.parent.toolbars.keys():
                 if self == self.parent.TgtMapWindow:
                 if self == self.parent.TgtMapWindow:
                     coordtype = 'target'
                     coordtype = 'target'
                 else:
                 else: