]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Changed Rectangles to LinkedRectangles in makePage()
authorarved <arved@unknown>
Sun, 2 Apr 2000 03:47:03 +0000 (03:47 +0000)
committerarved <arved@unknown>
Sun, 2 Apr 2000 03:47:03 +0000 (03:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193317 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/pdf/PDFRenderer.java

index b97b7d77695f44168d6fcbddfbaa31ea29c678ba..7f29ad333eef7a438ac501e415198288dd23b485 100644 (file)
@@ -516,18 +516,20 @@ public class PDFRenderer implements Renderer {
                             page.getHeight()/1000);
 
        if (page.hasLinks()) {
-
            currentAnnotList = this.pdfDoc.makeAnnotList();
            currentPage.setAnnotList(currentAnnotList);
 
            Enumeration e = page.getLinkSets().elements();
            while (e.hasMoreElements()) {
                LinkSet linkSet = (LinkSet) e.nextElement();
+
+               linkSet.align();
                String dest = linkSet.getDest();
                Enumeration f = linkSet.getRects().elements();
                while (f.hasMoreElements()) {
-                   Rectangle rect = (Rectangle) f.nextElement();
-                   currentAnnotList.addLink(this.pdfDoc.makeLink(rect, dest));
+                   LinkedRectangle lrect = (LinkedRectangle) f.nextElement();
+                   currentAnnotList.addLink(
+                       this.pdfDoc.makeLink(lrect.getRectangle(), dest));
                }
            }
        } else {