[GRASS-SVN] r43902 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 14 02:51:55 EDT 2010


Author: mmetz
Date: 2010-10-13 23:51:55 -0700 (Wed, 13 Oct 2010)
New Revision: 43902

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gcpmanager.py
Log:
fix for Mac when no target map is selected (backport from trunk r43901)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gcpmanager.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gcpmanager.py	2010-10-14 06:51:17 UTC (rev 43901)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gcpmanager.py	2010-10-14 06:51:55 UTC (rev 43902)
@@ -861,12 +861,13 @@
         #
         # show new display & draw map
         #
-        self.MapWindow = self.TgtMapWindow
-        self.Map = self.TgtMap
-        self.OnZoomToMap(None)
         self.MapWindow = self.SrcMapWindow
         self.Map = self.SrcMap
         self.OnZoomToMap(None)
+        if self.show_target:
+            self.MapWindow = self.TgtMapWindow
+            self.Map = self.TgtMap
+            self.OnZoomToMap(None)
 
         #
         # bindings



More information about the grass-commit mailing list