You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2017/12/07 16:01:20 UTC
svn commit: r1817387 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java
Author: tilman
Date: Thu Dec 7 16:01:20 2017
New Revision: 1817387
URL: http://svn.apache.org/viewvc?rev=1817387&view=rev
Log:
PDFBOX-4030: accept indirect objects too
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java?rev=1817387&r1=1817386&r2=1817387&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java Thu Dec 7 16:01:20 2017
@@ -57,12 +57,12 @@ public final class Matrix implements Clo
public Matrix(COSArray array)
{
single = new float[DEFAULT_SINGLE.length];
- single[0] = ((COSNumber)array.get(0)).floatValue();
- single[1] = ((COSNumber)array.get(1)).floatValue();
- single[3] = ((COSNumber)array.get(2)).floatValue();
- single[4] = ((COSNumber)array.get(3)).floatValue();
- single[6] = ((COSNumber)array.get(4)).floatValue();
- single[7] = ((COSNumber)array.get(5)).floatValue();
+ single[0] = ((COSNumber)array.getObject(0)).floatValue();
+ single[1] = ((COSNumber)array.getObject(1)).floatValue();
+ single[3] = ((COSNumber)array.getObject(2)).floatValue();
+ single[4] = ((COSNumber)array.getObject(3)).floatValue();
+ single[6] = ((COSNumber)array.getObject(4)).floatValue();
+ single[7] = ((COSNumber)array.getObject(5)).floatValue();
single[8] = 1;
}