pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1772092 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java
Date Wed, 30 Nov 2016 17:24:20 GMT
Author: tilman
Date: Wed Nov 30 17:24:20 2016
New Revision: 1772092

URL: http://svn.apache.org/viewvc?rev=1772092&view=rev
Log:
PDFBOX-3609: allow object reference

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java?rev=1772092&r1=1772091&r2=1772092&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDCIDFont.java
Wed Nov 30 17:24:20 2016
@@ -158,7 +158,7 @@ public abstract class PDCIDFont extends
                         int arraySize = array.size();
                         for (int i=0; i<arraySize; i++) 
                         {
-                            COSNumber width = (COSNumber)array.get(i);
+                            COSNumber width = (COSNumber)array.getObject(i);
                             widthCache.put(startRange+i, width.floatValue());
                         }
                     }



Mime
View raw message