tables.py: fix vertical height bug
authorrgbecker
Wed, 20 Apr 2005 10:39:42 +0000
changeset 2481 5620fd504c16
parent 2480 689b98d5c5cd
child 2482 4ae04d1800af
tables.py: fix vertical height bug
reportlab/platypus/tables.py
--- a/reportlab/platypus/tables.py	Tue Apr 19 12:44:21 2005 +0000
+++ b/reportlab/platypus/tables.py	Wed Apr 20 10:39:42 2005 +0000
@@ -306,6 +306,7 @@
         return "<%s at %d %d rows x %s cols>%s" % (self.__class__.__name__, id(self), nr, nc, vx)
 
     def _listCellGeom(self, V,w,s,W=None,H=None,aH=72000):
+        if not V: return 0,0
         aW = w-s.leftPadding-s.rightPadding
         aH = aH - s.topPadding - s.bottomPadding
         t = 0
@@ -317,8 +318,6 @@
             if H is not None: H.append(vh)
             w = max(w,vw)
             t = t + vh + v.getSpaceBefore()+v.getSpaceAfter()
-        else:
-            return w, t
         return w, t - V[0].getSpaceBefore()-V[-1].getSpaceAfter()
 
     def _calc_width(self,availWidth,W=None):