pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1803895 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java
Date Wed, 02 Aug 2017 18:25:18 GMT
Author: tilman
Date: Wed Aug  2 18:25:18 2017
New Revision: 1803895

URL: http://svn.apache.org/viewvc?rev=1803895&view=rev
Log:
PDFBOX-2852: fix bug introduced in previous commit

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java?rev=1803895&r1=1803894&r2=1803895&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunction.java
Wed Aug  2 18:25:18 2017
@@ -121,12 +121,12 @@ public abstract class PDFunction impleme
         COSBase base = function;
         if (function instanceof COSObject)
         {
-            base = function.getCOSObject();
+            base = ((COSObject) function).getObject();
         }
         if (!(base instanceof COSDictionary))
         {
             throw new IOException("Error: Function must be a Dictionary, but is " +
-                    function.getClass().getSimpleName());
+                    base.getClass().getSimpleName());
         }
         COSDictionary functionDictionary = (COSDictionary) base;
         int functionType = functionDictionary.getInt(COSName.FUNCTION_TYPE);



Mime
View raw message