pietsch     2002/07/18 15:47:41

  Modified:    src/org/apache/fop/apps Tag: fop-0_20_2-maintain
                        StreamRenderer.java
  Log:
  Fixed a class cast error with retrieve-marker
  Submitted by: Trond Aasan [EMAIL PROTECTED]
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.5   +5 -7      xml-fop/src/org/apache/fop/apps/Attic/StreamRenderer.java
  
  Index: StreamRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Attic/StreamRenderer.java,v
  retrieving revision 1.6.2.4
  retrieving revision 1.6.2.5
  diff -u -r1.6.2.4 -r1.6.2.5
  --- StreamRenderer.java       26 Jun 2002 20:37:49 -0000      1.6.2.4
  +++ StreamRenderer.java       18 Jul 2002 22:47:41 -0000      1.6.2.5
  @@ -327,7 +327,8 @@
           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 @@
               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;
               }
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to