We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63b53ff commit 1666f5bCopy full SHA for 1666f5b
src/Html2OpenXml/Primitives/Unit.cs
@@ -111,7 +111,7 @@ private static long ComputeInEmus(UnitMetric type, double value)
111
case UnitMetric.Emus: return (long) value;
112
case UnitMetric.Inch: return (long) (value * 914400L);
113
case UnitMetric.Centimeter: return (long) (value * 360000L);
114
- case UnitMetric.Millimeter: return (long) (value * 3600000L);
+ case UnitMetric.Millimeter: return (long) (value * 36000L);
115
case UnitMetric.EM:
116
// well this is a rough conversion but considering 1em = 12pt (http://sureshjain.wordpress.com/2007/07/06/53/)
117
return (long) (value / 72 * 914400L * 12);
0 commit comments