pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1454882 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
Date Sun, 10 Mar 2013 17:20:26 GMT
Author: lehmi
Date: Sun Mar 10 17:20:25 2013
New Revision: 1454882

URL: http://svn.apache.org/r1454882
Log:
PDFBOX-1380: use the same name value for the upper and the lower limit if there is only one
name

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java?rev=1454882&r1=1454881&r2=1454882&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
Sun Mar 10 17:20:25 2013
@@ -187,7 +187,7 @@ public class PDNameTreeNode implements C
                 try 
                 {
                     Map<String, COSObjectable> names = getNames();
-                    if (names != null && names.size() >= 2)
+                    if (names != null && names.size() > 0)
                     {
                         Object[] keys = names.keySet().toArray();
                         String lowerLimit = (String)keys[0];



Mime
View raw message