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 2020/02/23 10:30:10 UTC

svn commit: r1874420 - /pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Author: tilman
Date: Sun Feb 23 10:30:10 2020
New Revision: 1874420

URL: http://svn.apache.org/viewvc?rev=1874420&view=rev
Log:
PDFBOX-4071: don't use inner assignments

Modified:
    pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java?rev=1874420&r1=1874419&r2=1874420&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java (original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java Sun Feb 23 10:30:10 2020
@@ -192,7 +192,8 @@ public class PDSeparation extends PDSpec
             for (int x = 0; x < width; x++)
             {
                 raster.getPixel(x, y, samples);
-                int[] rgb = calculatedValues.get(hash = Float.floatToIntBits(samples[0]));
+                hash = Float.floatToIntBits(samples[0]);
+                int[] rgb = calculatedValues.get(hash);
                 if (rgb == null)
                 {
                     samples[0] /= 255;