xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r730683 - /xmlgraphics/fop/branches/Temp_AreaTreeNewDesign/src/java/org/apache/fop/render/pdf/PDFDocumentNavigationHandler.java
Date Fri, 02 Jan 2009 09:19:10 GMT
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


Mime
View raw message