dabo Commit
Revision 5470
Date: 2009-10-16 12:06:10 -0700 (Fri, 16 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5470

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Working off Larry's latest patch in ticket #1281, I determined that Carl's 
report skipped a detail record when moving to the next column.

Does this fix it?


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2009-10-15 23:08:01 UTC (rev 5469)
+++ trunk/dabo/lib/reportWriter.py      2009-10-16 19:06:10 UTC (rev 5470)
@@ -1852,8 +1852,9 @@
 
                                check = pageFooterOrigin[1] + pfHeight + 
extraHeight
 
+                               isNewPageOrColumn = False
                                if y < check or maxBandHeight is None:
-                                       headers_printed = False
+                                       isNewPageOrColumn = True
                                        if self._currentColumn >= columnCount-1:
                                                self.being_deferred = True
                                                endPage()
@@ -1861,15 +1862,12 @@
                                                beginPage()
                                                y = pageHeaderOrigin[1]
                                                y = reprintGroupHeaders(y)
-                                               headers_printed = True
                                        else:
                                                self._currentColumn += 1
                                                y = pageHeaderOrigin[1]
                                        maxBandHeight = getTotalBandHeight()
                                        
-                                       if band in ("detail", "groupFooter") 
and not headers_printed:
-                                               y = reprintGroupHeaders(y)
-                                       if band != "detail" and headers_printed:
+                                       if not isNewPageOrColumn:
                                                return y
                                        
                                        if not deferred:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to