Revision: 349
http://openrpt.svn.sourceforge.net/openrpt/?rev=349&view=rev
Author: cryan
Date: 2009-06-24 20:03:12 +0000 (Wed, 24 Jun 2009)
Log Message:
-----------
Previous change was resetting record to first row undoing the (sub)totaling. Modified to move back to last record so the (sub)totaling still worked and a record was still available. Issue #9027.
Modified Paths:
--------------
openrpt/trunk/OpenRPT/renderer/orprerender.cpp
Modified: openrpt/trunk/OpenRPT/renderer/orprerender.cpp
===================================================================
--- openrpt/trunk/OpenRPT/renderer/orprerender.cpp 2009-06-24 16:47:23 UTC (rev 348)
+++ openrpt/trunk/OpenRPT/renderer/orprerender.cpp 2009-06-24 20:03:12 UTC (rev 349)
@@ -584,12 +584,11 @@
}
}
}
+ query->prev(); // move back to a valid record -- this keeps the records accessible and the (sub)totals still valid as well
}
_subtotContextDetail = 0;
if(ORDetailSectionData::BreakAtEnd == detailData.pagebreak)
createNewPage();
-
- query->first(); // reset the query back to the first row (sanity)
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.