summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/UnitConversion.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/UnitConversion.hxx b/include/tools/UnitConversion.hxx
index 028e5dcecfae..d568b78a2dd6 100644
--- a/include/tools/UnitConversion.hxx
+++ b/include/tools/UnitConversion.hxx
@@ -31,7 +31,7 @@ constexpr sal_Int64 convertPointToMm100(sal_Int64 nNumber)
constexpr double convertPointToTwip(double fNumber) { return fNumber * 20.0; }
-constexpr double convertPointToMm100(double fNumber) { return fNumber * 35.27777777778; }
+constexpr double convertPointToMm100(double fNumber) { return fNumber * (2540.0 / 72.0); }
// Convert PPT's "master unit" (1/576 inch) to twips
constexpr sal_Int64 convertMasterUnitToTwip(sal_Int64 n) { return n * 2540.0 / 576.0; }