reportlab/platypus/doctemplate.py
changeset 2664 c9faa3a99e93
parent 2661 e179247ffea3
child 2666 a72c25280be2
--- a/reportlab/platypus/doctemplate.py	Fri Jul 21 08:48:41 2006 +0000
+++ b/reportlab/platypus/doctemplate.py	Fri Jul 21 12:44:40 2006 +0000
@@ -586,7 +586,7 @@
         n = len(flowables)
         while i<n and flowables[i].getKeepWithNext(): i += 1
         if i:
-            if not getattr(flowables[i],'locChanger',None): i += 1
+            if i<n and not getattr(flowables[i],'locChanger',None): i += 1
             K = KeepTogether(flowables[:i])
             for f in K._content:
                 f.keepWithNext = 0