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:
@@ -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)),
|
||||
|
Reference in New Issue
Block a user