You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2009/01/02 10:19:10 UTC

svn commit: r730683 - /xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java

Author: jeremias
Date: Fri Jan  2 01:19:09 2009
New Revision: 730683

URL: http://svn.apache.org/viewvc?rev=730683&view=rev
Log:
Some PDF actions get pooled and therefore don't need to be registered.

Modified:
    xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java

Modified: xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java?rev=730683&r1=730682&r2=730683&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java (original)
+++ xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java Fri Jan  2 01:19:09 2009
@@ -158,7 +158,10 @@
             assert u.isComplete();
             PDFFactory factory = getPDFDoc().getFactory();
             pdfAction = factory.getExternalAction(u.getURI(), u.isNewWindow());
-            getPDFDoc().registerObject(pdfAction);
+            if (!pdfAction.hasObjectNumber()) {
+                //Some PDF actions a pooled
+                getPDFDoc().registerObject(pdfAction);
+            }
             this.completeActions.put(action.getID(), pdfAction);
             return pdfAction;
         } else {



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org