Don't draw if the panel is too small

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-05 00:07:42 +00:00
parent bfddbb17dc
commit db4aa52561

View File

@@ -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)),