Bläddra i källkod

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 år sedan
förälder
incheckning
5bbd79ff83
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 \
                 self.parent.GetLayerManager().gcpmanagement:
             # -> georectifier (redraw GCPs)
-            if self.parent.GetMapToolbar():
+            if 'gcpdisp' in self.parent.toolbars.keys():
                 if self == self.parent.TgtMapWindow:
                     coordtype = 'target'
                 else: