controls/DebugVariablePanel/DebugVariablePanel.py
changeset 2257 eb6b68c4439f
parent 1965 f77bc4fdc73c
child 2301 5b8a7dd43f9f
--- a/controls/DebugVariablePanel/DebugVariablePanel.py	Mon Jul 30 19:28:39 2018 +0300
+++ b/controls/DebugVariablePanel/DebugVariablePanel.py	Tue Jul 31 14:17:41 2018 +0300
@@ -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