X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42463de2678493f48631c42b4d1a7152c2786893..40efbdda050cf19bc97c0e711dc7e29003d472eb:/wxPython/wx/lib/floatcanvas/FloatCanvas.py diff --git a/wxPython/wx/lib/floatcanvas/FloatCanvas.py b/wxPython/wx/lib/floatcanvas/FloatCanvas.py index 83865fbc34..4ff0fcb513 100644 --- a/wxPython/wx/lib/floatcanvas/FloatCanvas.py +++ b/wxPython/wx/lib/floatcanvas/FloatCanvas.py @@ -1602,6 +1602,8 @@ class FloatCanvas(wx.Panel): """ #print "In Draw" + if self.PanelSize < (1,1): + return if self.Debug: start = clock() ScreenDC = wx.ClientDC(self) ViewPortWorld = ( self.PixelToWorld((0,0)), @@ -1644,7 +1646,6 @@ class FloatCanvas(wx.Panel): ViewPortBB, self._ForegroundHTdc) ScreenDC.Blit(0, 0, self.PanelSize[0],self.PanelSize[1], dc, 0, 0) -## wx.GetApp().Yield(True) # If the canvas is in the middle of a zoom or move, the Rubber Band box needs to be re-drawn # This seeems out of place, but it works. if self.PrevRBBox: