You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2020/06/27 15:37:44 UTC
svn commit: r1879282 - in /pdfbox/branches/2.0: ./ pdfbox/
pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java
Author: lehmi
Date: Sat Jun 27 15:37:43 2020
New Revision: 1879282
URL: http://svn.apache.org/viewvc?rev=1879282&view=rev
Log:
PDFBOX-4892: revert parts of last commit due to a type mismatch
Modified:
pdfbox/branches/2.0/ (props changed)
pdfbox/branches/2.0/pdfbox/ (props changed)
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java
Propchange: pdfbox/branches/2.0/
------------------------------------------------------------------------------
Merged /pdfbox/trunk:r1879281
Propchange: pdfbox/branches/2.0/pdfbox/
------------------------------------------------------------------------------
Merged /pdfbox/trunk/pdfbox:r1879281
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java?rev=1879282&r1=1879281&r2=1879282&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/PDFunctionType0.java Sat Jun 27 15:37:43 2020
@@ -306,7 +306,10 @@ public class PDFunctionType0 extends PDF
{
coord[step] = inPrev[step];
int[] tmpSample = getSamples()[calcSampleIndex(coord)];
- System.arraycopy(tmpSample, 0, resultSample, 0, numberOfOutputValues);
+ for (int i = 0; i < numberOfOutputValues; ++i)
+ {
+ resultSample[i] = tmpSample[i];
+ }
return resultSample;
}
coord[step] = inPrev[step];