pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r907941 - /pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java
Date Tue, 09 Feb 2010 06:32:54 GMT
Author: lehmi
Date: Tue Feb  9 06:32:53 2010
New Revision: 907941

URL: http://svn.apache.org/viewvc?rev=907941&view=rev
Log:
PDFBOX-542: removed java 1.6 dependency.

Modified:
    pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java

Modified: pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java
URL: http://svn.apache.org/viewvc/pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java?rev=907941&r1=907940&r2=907941&view=diff
==============================================================================
--- pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java (original)
+++ pdfbox/fontbox/trunk/src/main/java/org/apache/fontbox/cff/CharStringRenderer.java Tue
Feb  9 06:32:53 2010
@@ -119,15 +119,15 @@
             point = sidebearingPoint;
         }
         referencePoint = null;
-        path.moveTo(point.getX() + dx.floatValue(), point.getY()
-                + dy.floatValue());
+        path.moveTo((float)(point.getX() + dx.doubleValue()),
+                    (float)(point.getY() + dy.doubleValue()));
     }
 
     private void rlineTo(Number dx, Number dy)
     {
         Point2D point = path.getCurrentPoint();
-        path.lineTo(point.getX() + dx.floatValue(), point.getY()
-                + dy.floatValue());
+        path.lineTo((float)(point.getX() + dx.doubleValue()),
+                    (float)(point.getY() + dy.doubleValue()));
     }
 
     private void rrcurveTo(Number dx1, Number dy1, Number dx2, Number dy2,



Mime
View raw message