pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1809332 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java
Date Fri, 22 Sep 2017 18:39:22 GMT
Author: tilman
Date: Fri Sep 22 18:39:22 2017
New Revision: 1809332

URL: http://svn.apache.org/viewvc?rev=1809332&view=rev
Log:
PDFBOX-2852: remove unneeded cast

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java?rev=1809332&r1=1809331&r2=1809332&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java (original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/GlyfCompositeComp.java Fri Sep
22 18:39:22 2017
@@ -121,25 +121,25 @@ public class GlyfCompositeComp
         if ((flags & WE_HAVE_A_SCALE) != 0)
         {
             int i = bais.readSignedShort();
-            xscale = yscale = (double) i / (double) 0x4000;
+            xscale = yscale = i / (double) 0x4000;
         }
         else if ((flags & WE_HAVE_AN_X_AND_Y_SCALE) != 0)
         {
             short i = bais.readSignedShort();
-            xscale = (double) i / (double) 0x4000;
+            xscale = i / (double) 0x4000;
             i = bais.readSignedShort();
-            yscale = (double) i / (double) 0x4000;
+            yscale = i / (double) 0x4000;
         }
         else if ((flags & WE_HAVE_A_TWO_BY_TWO) != 0)
         {
             int i = bais.readSignedShort();
-            xscale = (double) i / (double) 0x4000;
+            xscale = i / (double) 0x4000;
             i = bais.readSignedShort();
-            scale01 = (double) i / (double) 0x4000;
+            scale01 = i / (double) 0x4000;
             i = bais.readSignedShort();
-            scale10 = (double) i / (double) 0x4000;
+            scale10 = i / (double) 0x4000;
             i = bais.readSignedShort();
-            yscale = (double) i / (double) 0x4000;
+            yscale = i / (double) 0x4000;
         }
     }
 



Mime
View raw message