From 2e7af793bf6e54d000e98629d32732324473a084 Mon Sep 17 00:00:00 2001 From: Joerg Pietschmann Date: Thu, 18 Jul 2002 22:47:41 +0000 Subject: [PATCH] Fixed a class cast error with retrieve-marker Submitted by: Trond Aasan trondaas@ub.ntnu.no git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195008 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/apps/StreamRenderer.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/org/apache/fop/apps/StreamRenderer.java b/src/org/apache/fop/apps/StreamRenderer.java index 3c3f7c4f7..6870aeb7c 100644 --- a/src/org/apache/fop/apps/StreamRenderer.java +++ b/src/org/apache/fop/apps/StreamRenderer.java @@ -327,7 +327,8 @@ public class StreamRenderer { else pageIndex = renderQueue.indexOf(current); if ((pageIndex + 1) < renderQueue.size()) { - nextPage = (Page)renderQueue.elementAt(pageIndex + 1); + nextPage = ((RenderQueueEntry)renderQueue + .elementAt(pageIndex + 1)).getPage(); if (isWithinPageSequence &&!nextPage.getPageSequence().equals(current.getPageSequence())) { nextPage = null; @@ -344,15 +345,12 @@ public class StreamRenderer { pageIndex = renderQueue.size(); else pageIndex = renderQueue.indexOf(current); - // System.out.println("Page index = " + pageIndex); if ((pageIndex - 1) >= 0) { - previousPage = (Page)renderQueue.elementAt(pageIndex - 1); + previousPage = ((RenderQueueEntry)renderQueue + .elementAt(pageIndex - 1)).getPage(); PageSequence currentPS = current.getPageSequence(); - // System.out.println("Current PS = '" + currentPS + "'"); PageSequence previousPS = previousPage.getPageSequence(); - // System.out.println("Previous PS = '" + previousPS + "'"); if (isWithinPageSequence &&!previousPS.equals(currentPS)) { - // System.out.println("Outside page sequence"); previousPage = null; } } -- 2.39.5