소스 검색

wxGUI: bug fix: wxPaintDC may be created only in EVT_PAINT handler

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51068 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 년 전
부모
커밋
45e5ab7cae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gui/wxpython/mapdisp/mapwindow.py

+ 1 - 1
gui/wxpython/mapdisp/mapwindow.py

@@ -470,7 +470,7 @@ class BufferedWindow(MapWindow, wx.Window):
             # set back old coordinates
             textinfo['coords'] = oldCoords
             
-        dc = wx.BufferedPaintDC(self, ibuffer)
+        dc = wx.BufferedDC(None, ibuffer)
         dc.Clear()
         self.PrepareDC(dc)
         self.pdc.DrawToDC(dc)