]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't draw if the panel is too small
authorRobin Dunn <robin@alldunn.com>
Sat, 5 Jun 2004 00:07:42 +0000 (00:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 5 Jun 2004 00:07:42 +0000 (00:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/floatcanvas/FloatCanvas.py

index 83865fbc3475030f3d748d89cb59ba4da8614d99..58f9421df07be3b0b73f3022e8c2b722dbf4fc01 100644 (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)),