[GRASS-SVN] r43903 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 14 02:54:25 EDT 2010


Author: mmetz
Date: 2010-10-13 23:54:25 -0700 (Wed, 13 Oct 2010)
New Revision: 43903

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

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcpmanager.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcpmanager.py	2010-10-14 06:51:55 UTC (rev 43902)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcpmanager.py	2010-10-14 06:54:25 UTC (rev 43903)
@@ -954,12 +954,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