[GRASS-SVN] r39447 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 8 08:41:11 EDT 2009


Author: martinl
Date: 2009-10-08 08:41:10 -0400 (Thu, 08 Oct 2009)
New Revision: 39447

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI: fix zoomtomap/vdigit


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-10-08 12:14:07 UTC (rev 39446)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2009-10-08 12:41:10 UTC (rev 39447)
@@ -2579,7 +2579,7 @@
                 rast.append(l.name)
             elif l.type == 'vector':
                 digitToolbar = self.parent.toolbars['vdigit']
-                if digitToolbar and digitToolbar.GetLayer() == l.name:
+                if digitToolbar and digitToolbar.GetLayer() == l:
                     w, s, b, e, n, t = self.parent.digit.driver.GetMapBoundingBox()
                     self.Map.GetRegion(n=n, s=s, w=w, e=e,
                                        update=True)



More information about the grass-commit mailing list