[GRASS-SVN] r50058 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 4 08:22:19 EST 2012


Author: mmetz
Date: 2012-01-04 05:22:19 -0800 (Wed, 04 Jan 2012)
New Revision: 50058

Modified:
   grass/trunk/gui/wxpython/mapdisp/mapwindow.py
Log:
wxGUI: bugfix if gcp manager is active

Modified: grass/trunk/gui/wxpython/mapdisp/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/mapwindow.py	2012-01-04 11:34:35 UTC (rev 50057)
+++ grass/trunk/gui/wxpython/mapdisp/mapwindow.py	2012-01-04 13:22:19 UTC (rev 50058)
@@ -598,7 +598,7 @@
         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:



More information about the grass-commit mailing list