diff --git a/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java b/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java index dcfde7e18..6f342d2ee 100644 --- a/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java +++ b/src/ooxml/java/org/apache/poi/xslf/model/geom/CurveToCommand.java @@ -47,6 +47,6 @@ public class CurveToCommand implements PathCommand { double y2 = ctx.getValue(arg4); double x3 = ctx.getValue(arg5); double y3 = ctx.getValue(arg6); - path.curveTo(x1, y1, x2, y2, x3, y3); + path.curveTo((float)x1, (float)y1, (float)x2, (float)y2, (float)x3, (float)y3); } } diff --git a/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java b/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java index a0ba20116..0d3b2bbba 100644 --- a/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java +++ b/src/ooxml/java/org/apache/poi/xslf/model/geom/Formula.java @@ -39,7 +39,7 @@ public abstract class Formula { static Map builtInFormulas = new HashMap(); static { - // 3 x 360¡ / 4 = 270¡ + // 3 x 360 / 4 = 270 builtInFormulas.put("3cd4", new Formula(){ @Override double evaluate(Context ctx){ @@ -48,7 +48,7 @@ public abstract class Formula { }); - // 3 x 360¡ / 8 = 135¡ + // 3 x 360 / 8 = 135 builtInFormulas.put("3cd8", new Formula(){ @Override double evaluate(Context ctx){ @@ -57,7 +57,7 @@ public abstract class Formula { }); - // 5 x 360¡ / 8 = 225¡ + // 5 x 360 / 8 = 225 builtInFormulas.put("5cd8", new Formula(){ @Override double evaluate(Context ctx){ @@ -66,7 +66,7 @@ public abstract class Formula { }); - // 7 x 360¡ / 8 = 315¡ + // 7 x 360 / 8 = 315 builtInFormulas.put("7cd8", new Formula(){ @Override double evaluate(Context ctx){ @@ -85,7 +85,7 @@ public abstract class Formula { }); - // 360¡ / 2 = 180¡ + // 360 / 2 = 180 builtInFormulas.put("cd2", new Formula(){ @Override double evaluate(Context ctx){ @@ -94,7 +94,7 @@ public abstract class Formula { }); - // 360¡ / 4 = 90¡ + // 360 / 4 = 90 builtInFormulas.put("cd4", new Formula(){ @Override double evaluate(Context ctx){ @@ -103,7 +103,7 @@ public abstract class Formula { }); - // 360¡ / 8 = 45¡ + // 360 / 8 = 45 builtInFormulas.put("cd8", new Formula(){ @Override double evaluate(Context ctx){ diff --git a/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java b/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java index 730636284..3df2e499e 100644 --- a/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java +++ b/src/ooxml/java/org/apache/poi/xslf/model/geom/LineToCommand.java @@ -39,6 +39,6 @@ public class LineToCommand implements PathCommand { public void execute(GeneralPath path, Context ctx){ double x = ctx.getValue(arg1); double y = ctx.getValue(arg2); - path.lineTo(x, y); + path.lineTo((float)x, (float)y); } } diff --git a/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java b/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java index 534534dd5..a5a4b5ce6 100644 --- a/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java +++ b/src/ooxml/java/org/apache/poi/xslf/model/geom/MoveToCommand.java @@ -39,6 +39,6 @@ public class MoveToCommand implements PathCommand { public void execute(GeneralPath path, Context ctx){ double x = ctx.getValue(arg1); double y = ctx.getValue(arg2); - path.moveTo(x, y); + path.moveTo((float)x, (float)y); } } diff --git a/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java b/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java index 9a0f2407f..65fd7d45e 100644 --- a/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java +++ b/src/ooxml/java/org/apache/poi/xslf/model/geom/QuadToCommand.java @@ -43,6 +43,6 @@ public class QuadToCommand implements PathCommand { double y1 = ctx.getValue(arg2); double x2 = ctx.getValue(arg3); double y2 = ctx.getValue(arg4); - path.quadTo(x1, y1, x2, y2); + path.quadTo((float)x1, (float)y1, (float)x2, (float)y2); } }