pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1850055 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
Date Mon, 31 Dec 2018 15:23:48 GMT
Author: tilman
Date: Mon Dec 31 15:23:47 2018
New Revision: 1850055

URL: http://svn.apache.org/viewvc?rev=1850055&view=rev
Log:
PDFBOX-4009: destParentTreeNextKey can be == 0

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java?rev=1850055&r1=1850054&r2=1850055&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/multipdf/PDFMergerUtility.java Mon
Dec 31 15:23:47 2018
@@ -725,7 +725,7 @@ public class PDFMergerUtility
                             destParentTreeNextKey = Collections.max(numberTreeAsMap.keySet())
+ 1;
                         }
                     }
-                    if (destParentTreeNextKey > 0 && srcStructTree != null)
+                    if (destParentTreeNextKey >= 0 && srcStructTree != null)
                     {
                         PDNumberTreeNode srcParentTree = srcStructTree.getParentTree();
                         if (srcParentTree != null)



Mime
View raw message