Преглед изворни кода

wxGUI/mapswipe: fix needed after changes in Draw function parameter in BufferedWindow

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@64663 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová пре 10 година
родитељ
комит
f215983fbf
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      gui/wxpython/mapswipe/mapwindow.py

+ 3 - 2
gui/wxpython/mapswipe/mapwindow.py

@@ -115,7 +115,8 @@ class SwipeBufferedWindow(BufferedMapWindow):
         if not self.movingSash:
         if not self.movingSash:
             super(SwipeBufferedWindow, self).OnSize(event)
             super(SwipeBufferedWindow, self).OnSize(event)
 
 
-    def Draw(self, pdc, img = None, drawid = None, pdctype = 'image', coords = [0, 0, 0, 0], pen = None):
+    def Draw(self, pdc, img=None, drawid=None, pdctype='image',
+             coords=[0, 0, 0, 0], pen=None, brush=None):
         """Draws image (map) with translated coordinates.
         """Draws image (map) with translated coordinates.
         """
         """
         Debug.msg(2, "SwipeBufferedWindow.Draw()")
         Debug.msg(2, "SwipeBufferedWindow.Draw()")
@@ -123,7 +124,7 @@ class SwipeBufferedWindow(BufferedMapWindow):
         if pdctype == 'image':
         if pdctype == 'image':
             coords = self.GetImageCoords()
             coords = self.GetImageCoords()
 
 
-        return super(SwipeBufferedWindow, self).Draw(pdc, img, drawid, pdctype, coords, pen)
+        return super(SwipeBufferedWindow, self).Draw(pdc, img, drawid, pdctype, coords, pen, brush)
         
         
     def OnLeftDown(self, event):
     def OnLeftDown(self, event):
         """Left mouse button pressed.
         """Left mouse button pressed.