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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 27 07:23:15 EDT 2011


Author: martinl
Date: 2011-08-27 04:23:15 -0700 (Sat, 27 Aug 2011)
New Revision: 47896

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI/vdigit: fix zoom to map


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2011-08-27 10:03:47 UTC (rev 47895)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py	2011-08-27 11:23:15 UTC (rev 47896)
@@ -1225,7 +1225,7 @@
             if (event.LeftIsDown() and 
                 not (digitToolbar and 
                     digitToolbar.GetAction() in ("moveLine",) and 
-                    self.display.GetSelected() > 0)):
+                     self.digit.GetDisplay().GetSelected() > 0)):
                 # draw box only when left mouse button is pressed
                 self.MouseDraw(pdc = self.pdcTmp)
         
@@ -1759,7 +1759,7 @@
             elif l.type == 'vector':
                 if hasattr(self, "digit") and \
                         self.toolbar.GetLayer() == l:
-                    w, s, b, e, n, t = self.display.GetMapBoundingBox()
+                    w, s, b, e, n, t = self.digit.GetDisplay().GetMapBoundingBox()
                     self.Map.GetRegion(n = n, s = s, w = w, e = e,
                                        update = True)
                     updated = True



More information about the grass-commit mailing list