소스 검색

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:
             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.
         """
         Debug.msg(2, "SwipeBufferedWindow.Draw()")
@@ -123,7 +124,7 @@ class SwipeBufferedWindow(BufferedMapWindow):
         if pdctype == 'image':
             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):
         """Left mouse button pressed.