pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1825141 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java
Date Fri, 23 Feb 2018 17:28:03 GMT
Author: tilman
Date: Fri Feb 23 17:28:03 2018
New Revision: 1825141

URL: http://svn.apache.org/viewvc?rev=1825141&view=rev
Log:
PDFBOX-4117: check for /P and /C (was a typo)

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java?rev=1825141&r1=1825140&r2=1825141&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDTargetDirectory.java
Fri Feb 23 17:28:03 2018
@@ -90,7 +90,7 @@ public class PDTargetDirectory implement
      */
     public void setRelationship(COSName relationship)
     {
-        if (!COSName.P.equals(relationship) && !COSName.P.equals(relationship))
+        if (!COSName.P.equals(relationship) && !COSName.C.equals(relationship))
         {
             throw new IllegalArgumentException("The only valid are P or C, not " + relationship.getName());
         }



Mime
View raw message