src/reportlab/platypus/doctemplate.py
changeset 2996 13de24dfc11b
parent 2995 b510fcf46c0b
child 2998 efe6a1d93dd2
--- a/src/reportlab/platypus/doctemplate.py	Wed Sep 24 08:57:07 2008 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Wed Sep 24 11:07:24 2008 +0000
@@ -687,6 +687,8 @@
                         raise LayoutError(ident)
                     # this ought to be cleared when they are finally drawn!
                     f._postponed = 1
+                    if self._multiBuildEdits:
+                        self._multiBuildEdits((delattr,f,'_postponed'))
                     flowables.insert(0,f)           # put the flowable back
                     self.handle_frameEnd()
 
@@ -855,12 +857,6 @@
             if passes > maxPasses:
                 raise IndexError, "Index entries not resolved after %d passes" % maxPasses
 
-            #clean up so multi-build does not go wrong - the frame
-            #packer might have tacked an attribute onto some flowables
-            for elem in story:
-                if hasattr(elem, '_postponed'):
-                    del elem._postponed
-
             #work through any edits
             while mbe:
                 e = mbe.pop(0)