Browse Source

wxGUI: fix zoomtomap/vdigit

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39447 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
0fb0be4e67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_modules/mapdisp_window.py

+ 1 - 1
gui/wxpython/gui_modules/mapdisp_window.py

@@ -2579,7 +2579,7 @@ class BufferedWindow(MapWindow, wx.Window):
                 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)