]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/floatcanvas/FloatCanvas.py
fixed incorrect assert (patch #943970)
[wxWidgets.git] / 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)),