aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2011-08-11 09:17:12 +0000
committerYegor Kozlov <yegor@apache.org>2011-08-11 09:17:12 +0000
commitabad8d1b09c57f6b6753a71f582ce0ba0c03cf05 (patch)
tree1372697ff8c63039580a45fdc5f3ea6113693676
parent453e72046dfcee0a9dbfd3b6202dbc0dd022f6b3 (diff)
downloadpoi-abad8d1b09c57f6b6753a71f582ce0ba0c03cf05.tar.gz
poi-abad8d1b09c57f6b6753a71f582ce0ba0c03cf05.zip
keep compiler from JDK 1.5.22 happy
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1156551 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xsrc/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFreeformShape.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFreeformShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFreeformShape.java
index a494a3cab9..a0b3ab0558 100755
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFreeformShape.java
+++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFreeformShape.java
@@ -121,24 +121,24 @@ public class XSLFFreeformShape extends XSLFAutoShape {
for(XmlObject ch : spPath.selectPath("*")){
if(ch instanceof CTPath2DMoveTo){
CTAdjPoint2D pt = ((CTPath2DMoveTo)ch).getPt();
- path.moveTo(Units.toPoints((Long)pt.getX() + x0),
- Units.toPoints((Long)pt.getY() + y0));
+ path.moveTo((float)Units.toPoints((Long)pt.getX() + x0),
+ (float)Units.toPoints((Long)pt.getY() + y0));
} else if (ch instanceof CTPath2DLineTo){
CTAdjPoint2D pt = ((CTPath2DLineTo)ch).getPt();
- path.lineTo(Units.toPoints((Long)pt.getX() + x0),
- Units.toPoints((Long)pt.getY() + y0));
+ path.lineTo((float)Units.toPoints((Long)pt.getX() + x0),
+ (float)Units.toPoints((Long)pt.getY() + y0));
} else if (ch instanceof CTPath2DCubicBezierTo){
CTPath2DCubicBezierTo bez = ((CTPath2DCubicBezierTo)ch);
CTAdjPoint2D pt1 = bez.getPtArray(0);
CTAdjPoint2D pt2 = bez.getPtArray(1);
CTAdjPoint2D pt3 = bez.getPtArray(2);
path.curveTo(
- Units.toPoints((Long) pt1.getX() + x0),
- Units.toPoints((Long) pt1.getY() + y0),
- Units.toPoints((Long) pt2.getX() + x0),
- Units.toPoints((Long) pt2.getY() + y0),
- Units.toPoints((Long) pt3.getX() + x0),
- Units.toPoints((Long) pt3.getY() + y0)
+ (float)Units.toPoints((Long) pt1.getX() + x0),
+ (float)Units.toPoints((Long) pt1.getY() + y0),
+ (float)Units.toPoints((Long) pt2.getX() + x0),
+ (float)Units.toPoints((Long) pt2.getY() + y0),
+ (float)Units.toPoints((Long) pt3.getX() + x0),
+ (float)Units.toPoints((Long) pt3.getY() + y0)
);
} else if (ch instanceof CTPath2DClose){
@@ -175,4 +175,4 @@ public class XSLFFreeformShape extends XSLFAutoShape {
return ct;
}
-} \ No newline at end of file
+}