Pārlūkot izejas kodu

wxGUI/vdigit: fix zoom to map

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47896 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 gadi atpakaļ
vecāks
revīzija
31e2056ff2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      gui/wxpython/gui_modules/mapdisp_window.py

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

@@ -1225,7 +1225,7 @@ class BufferedWindow(MapWindow, wx.Window):
             if (event.LeftIsDown() and 
             if (event.LeftIsDown() and 
                 not (digitToolbar and 
                 not (digitToolbar and 
                     digitToolbar.GetAction() in ("moveLine",) and 
                     digitToolbar.GetAction() in ("moveLine",) and 
-                    self.display.GetSelected() > 0)):
+                     self.digit.GetDisplay().GetSelected() > 0)):
                 # draw box only when left mouse button is pressed
                 # draw box only when left mouse button is pressed
                 self.MouseDraw(pdc = self.pdcTmp)
                 self.MouseDraw(pdc = self.pdcTmp)
         
         
@@ -1759,7 +1759,7 @@ class BufferedWindow(MapWindow, wx.Window):
             elif l.type == 'vector':
             elif l.type == 'vector':
                 if hasattr(self, "digit") and \
                 if hasattr(self, "digit") and \
                         self.toolbar.GetLayer() == l:
                         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,
                     self.Map.GetRegion(n = n, s = s, w = w, e = e,
                                        update = True)
                                        update = True)
                     updated = True
                     updated = True