Fix bug on Windows with wxPaintDC
authorLaurent Bessard
Wed, 27 Feb 2013 09:37:51 +0100
changeset 946 9343740603f5
parent 945 c1159acb0886
child 947 82e2a155a3ce
Fix bug on Windows with wxPaintDC
controls/DebugVariablePanel.py
--- a/controls/DebugVariablePanel.py	Tue Feb 26 09:26:25 2013 +0100
+++ b/controls/DebugVariablePanel.py	Wed Feb 27 09:37:51 2013 +0100
@@ -737,7 +737,7 @@
             width, height = self.GetSize()
             bitmap = wx.EmptyBitmap(width, height)
             
-            dc = wx.BufferedPaintDC(self, bitmap)
+            dc = wx.BufferedDC(wx.ClientDC(self), bitmap)
             dc.Clear()
             dc.BeginDrawing()
             
@@ -1737,7 +1737,7 @@
             
             width, height = self.GraphicsWindow.GetVirtualSize()
             bitmap = wx.EmptyBitmap(width, height)
-            dc = wx.BufferedPaintDC(self.GraphicsWindow, bitmap)
+            dc = wx.BufferedDC(wx.ClientDC(self.GraphicsWindow), bitmap)
             dc.Clear()
             dc.BeginDrawing()
             if self.DraggingAxesPanel is not None: