--- a/controls/DebugVariablePanel/DebugVariablePanel.py Wed Aug 08 13:27:44 2018 +0200
+++ b/controls/DebugVariablePanel/DebugVariablePanel.py Wed Aug 08 13:46:19 2018 +0200
@@ -35,8 +35,6 @@
import matplotlib
matplotlib.use('WX') # noqa
import matplotlib.pyplot
-from matplotlib.backends.backend_wxagg import _convert_agg_to_wx_bitmap
-
from editors.DebugViewer import DebugViewer
from util.BitmapLibrary import GetBitmap
@@ -525,24 +523,6 @@
def RefreshView(self):
self.RefreshCanvasPosition()
- width, height = self.GraphicsWindow.GetVirtualSize()
- bitmap = wx.EmptyBitmap(width, height)
- dc = wx.BufferedDC(wx.ClientDC(self.GraphicsWindow), bitmap)
- dc.Clear()
- dc.BeginDrawing()
- if self.DraggingAxesPanel is not None:
- destBBox = self.DraggingAxesBoundingBox
- srcBBox = self.DraggingAxesPanel.GetAxesBoundingBox()
-
- srcBmp = _convert_agg_to_wx_bitmap(self.DraggingAxesPanel.get_renderer(), None)
- srcDC = wx.MemoryDC()
- srcDC.SelectObject(srcBmp)
-
- dc.Blit(destBBox.x, destBBox.y,
- int(destBBox.width), int(destBBox.height),
- srcDC, srcBBox.x, srcBBox.y)
- dc.EndDrawing()
-
if not self.Fixed or self.Force:
self.Force = False
refresh_graphics = True