pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1647621 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java
Date Tue, 23 Dec 2014 17:22:35 GMT
Author: tilman
Date: Tue Dec 23 17:22:35 2014
New Revision: 1647621

URL: http://svn.apache.org/r1647621
Log:
PDFBOX-2576, PDFBOX-1094: BigDecimal objects are immutable

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java?rev=1647621&r1=1647620&r2=1647621&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TilingPaint.java Tue Dec
23 17:22:35 2014
@@ -44,7 +44,7 @@ import org.apache.pdfbox.util.Matrix;
 /**
  * AWT Paint for a tiling pattern, which consists of a small repeating graphical figure.
  *
- * @author Andreas Lehmkühler
+ * @author Andreas Lehmkühler
  * @author John Hewson
  */
 class TilingPaint implements Paint
@@ -174,7 +174,7 @@ class TilingPaint implements Paint
     private static int ceiling(double num)
     {
         BigDecimal decimal = new BigDecimal(num);
-        decimal.setScale(5, RoundingMode.CEILING); // 5 decimal places of accuracy
+        decimal = decimal.setScale(5, RoundingMode.CEILING); // 5 decimal places of accuracy
         return decimal.intValue();
     }
 



Mime
View raw message