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

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


Author: martinl
Date: 2011-08-27 04:27:30 -0700 (Sat, 27 Aug 2011)
New Revision: 47898

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI/vdigit: fix zoom to map
             (merge r47896 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2011-08-27 11:24:54 UTC (rev 47897)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2011-08-27 11:27:30 UTC (rev 47898)
@@ -1198,7 +1198,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)
         
@@ -1730,7 +1730,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