فهرست منبع

wxGUI: fix bug in georectifier caused by previous change (co-author V. Petras)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48766 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 سال پیش
والد
کامیت
050c4e5316
2فایلهای تغییر یافته به همراه7 افزوده شده و 4 حذف شده
  1. 3 3
      gui/wxpython/gui_modules/gcpmapdisp.py
  2. 4 1
      gui/wxpython/gui_modules/mapdisp.py

+ 3 - 3
gui/wxpython/gui_modules/gcpmapdisp.py

@@ -344,7 +344,7 @@ class MapFrame(MapFrameBase):
         Zoom in the map.
         Zoom in the map.
         Set mouse cursor, zoombox attributes, and zoom direction
         Set mouse cursor, zoombox attributes, and zoom direction
         """
         """
-        if self.toolbars['map']:
+        if self.GetToolbar('map'):
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].action['desc'] = ''
             self.toolbars['map'].action['desc'] = ''
         
         
@@ -374,7 +374,7 @@ class MapFrame(MapFrameBase):
         Zoom out the map.
         Zoom out the map.
         Set mouse cursor, zoombox attributes, and zoom direction
         Set mouse cursor, zoombox attributes, and zoom direction
         """
         """
-        if self.toolbars['map']:
+        if self.GetToolbar('map'):
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].action['desc'] = ''
             self.toolbars['map'].action['desc'] = ''
         
         
@@ -409,7 +409,7 @@ class MapFrame(MapFrameBase):
         """
         """
         Panning, set mouse to drag
         Panning, set mouse to drag
         """
         """
-        if self.toolbars['map']:
+        if self.GetToolbar('map'):
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].OnTool(event)
             self.toolbars['map'].action['desc'] = ''
             self.toolbars['map'].action['desc'] = ''
         
         

+ 4 - 1
gui/wxpython/gui_modules/mapdisp.py

@@ -255,7 +255,10 @@ class MapFrameBase(wx.Frame):
        raise NotImplementedError()
        raise NotImplementedError()
        
        
     def GetToolbar(self, name):
     def GetToolbar(self, name):
-        """!Returns toolbar if exists else None"""
+        """!Returns toolbar if exists else None.
+        
+        Toolbars dictionary contains currently used toolbars only.
+        """
         if name in self.toolbars:
         if name in self.toolbars:
             return self.toolbars[name]
             return self.toolbars[name]