diff --git a/engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelUtil.java b/engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelUtil.java index fd3e4a387b..f0f21061f7 100644 --- a/engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelUtil.java +++ b/engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelUtil.java @@ -479,7 +479,7 @@ public static int convertToPt(String size) { } else if (size.endsWith("cm")) { return (int) (s / 2.54 * 72); } else if (size.endsWith("mm")) { - return (int) (s * 10 / 2.54 * 72); + return (int) (s / 10 / 2.54 * 72); } else if (size.endsWith("pc")) { return s; } else { diff --git a/engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java b/engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java index ee7a7c06af..fd3657a4bc 100644 --- a/engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java +++ b/engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java @@ -414,7 +414,7 @@ public static int convertToPt(String size) { } else if (size.endsWith("cm")) { return (int) (s / 2.54 * 72); } else if (size.endsWith("mm")) { - return (int) (s * 10 / 2.54 * 72); + return (int) (s / 10 / 2.54 * 72); } else if (size.endsWith("pc")) { return s; } else {