aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2011-01-24 22:18:42 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2011-01-24 22:18:42 +0000
commit1c8f05b0a02f3238ec6d508ed6e942b6104d7f1c (patch)
treeda2e5f8df4e56a94716d7cbd86eb1e5cf4de5c72 /src
parent6de2d9fab226f7da81f5c803100990f71f7e44e1 (diff)
downloadxmlgraphics-fop-1c8f05b0a02f3238ec6d508ed6e942b6104d7f1c.tar.gz
xmlgraphics-fop-1c8f05b0a02f3238ec6d508ed6e942b6104d7f1c.zip
Bugzilla 50635: fix issue in checkPreparedPages() where the same page-sequence is potentially started multiple times
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1063022 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/area/RenderPagesModel.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/area/RenderPagesModel.java b/src/java/org/apache/fop/area/RenderPagesModel.java
index 592e49f1e..afec850f8 100644
--- a/src/java/org/apache/fop/area/RenderPagesModel.java
+++ b/src/java/org/apache/fop/area/RenderPagesModel.java
@@ -155,14 +155,15 @@ public class RenderPagesModel extends AreaTreeModel {
* false if the renderer doesn't support out of order
* rendering and there are pending pages
*/
- protected boolean checkPreparedPages(PageViewport newPageViewport, boolean
- renderUnresolved) {
+ protected boolean checkPreparedPages(PageViewport newPageViewport,
+ boolean renderUnresolved) {
+
for (Iterator iter = prepared.iterator(); iter.hasNext();) {
PageViewport pageViewport = (PageViewport)iter.next();
if (pageViewport.isResolved() || renderUnresolved) {
if (!renderer.supportsOutOfOrder()
&& pageViewport.getPageSequence().isFirstPage(pageViewport)) {
- renderer.startPageSequence(getCurrentPageSequence());
+ renderer.startPageSequence(pageViewport.getPageSequence());
}
renderPage(pageViewport);
pageViewport.clear();