[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kugar/lib
From:       Adam Treat <treat () kde ! org>
Date:       2005-08-30 17:07:19
Message-ID: 1125421639.440863.7450.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 455129 by treat:

* Zero out a constant upon template initialization.

 M  +8 -3      mreportengine.cpp  


--- trunk/koffice/kugar/lib/mreportengine.cpp #455128:455129
@@ -364,8 +364,9 @@
                         footer->setReportDate( currDate );
                         footer->setCalcFieldData( &grandTotal );
                         if ( ( currY + footer->getHeight() ) > currHeight )
+                        {
                             newPage( pages );
-
+                        }
                         footer->draw( &p, leftMargin, currY );
                         currY += footer->getHeight();
                     }
@@ -379,8 +380,9 @@
                 header->setPageNumber( currPage );
                 header->setReportDate( currDate );
                 if ( ( currY + header->getHeight() ) > currHeight )
+                {
                     newPage( pages );
-
+                }
                 header->draw( &p, leftMargin, currY );
                 currY += header->getHeight();
             }
@@ -428,7 +430,7 @@
         }
     }
 
-    // Draw detail footers that was not drawn before
+    // Draw detail footers that were not drawn before
     //   for details from curDetailLevel up to prevDetailLevel
     for ( int i = prevDetailLevel; i >= 0; i-- )
     {
@@ -439,7 +441,9 @@
             footer->setReportDate( currDate );
             footer->setCalcFieldData( &grandTotal );
             if ( ( currY + footer->getHeight() ) > currHeight )
+            {
                 newPage( pages );
+            }
 
             footer->draw( &p, leftMargin, currY );
             currY += footer->getHeight();
@@ -669,6 +673,7 @@
 /** Walks the document tree, setting the report layout */
 void MReportEngine::initTemplate()
 {
+    heightOfDetails = 0;
 
 #ifdef Q_WS_WIN
     recalcDimensions();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic