From 15957e14408e7b525c71914739faa63bd827117d Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 8 Jun 2017 21:06:11 +0200 Subject: VML: EMU to Points conversion Change-Id: Icd2dbd6e894975615268dc4aa52d1d53bf9c0bca Reviewed-on: https://gerrit.libreoffice.org/38581 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- oox/source/vml/vmlformatting.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'oox/source/vml/vmlformatting.cxx') diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx index c52b48e6e674..cb7ea244c554 100644 --- a/oox/source/vml/vmlformatting.cxx +++ b/oox/source/vml/vmlformatting.cxx @@ -929,9 +929,7 @@ void TextpathModel::pushToPropMap(ShapePropertyMap& rPropMap, const uno::Referen else if (aName == "font-size") { oox::OptValue aOptString(aValue); - sal_Int64 nEmu = lclGetEmu( rGraphicHelper, aOptString, 1 ); - // 1 point = 1/72 inch = 12,700 EMU - float nSize = nEmu / 12700; + float nSize = drawingml::convertEmuToPoints(lclGetEmu(rGraphicHelper, aOptString, 1)); uno::Reference xPropertySet(xShape, uno::UNO_QUERY); xPropertySet->setPropertyValue("CharHeight", uno::makeAny(nSize)); -- cgit