summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-06-08 21:06:11 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-06-16 18:31:58 +0200
commitc55f310515e36a60cd493d580131bd2d28fd34ad (patch)
treed8260d89296cc85d18c6a802dee103e6efe691f1 /oox
parentca424a3fa0a5bfd90276319158198b9ec493a101 (diff)
VML: EMU to Points conversion
Change-Id: Icd2dbd6e894975615268dc4aa52d1d53bf9c0bca Reviewed-on: https://gerrit.libreoffice.org/38581 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 15957e14408e7b525c71914739faa63bd827117d) Reviewed-on: https://gerrit.libreoffice.org/38879 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmlformatting.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx
index 2992a185b82a..2cbb4ca24fca 100644
--- a/oox/source/vml/vmlformatting.cxx
+++ b/oox/source/vml/vmlformatting.cxx
@@ -904,9 +904,7 @@ void TextpathModel::pushToPropMap(ShapePropertyMap& rPropMap, const uno::Referen
else if (aName == "font-size")
{
oox::OptValue<OUString> 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<beans::XPropertySet> xPropertySet(xShape, uno::UNO_QUERY);
xPropertySet->setPropertyValue("CharHeight", uno::makeAny(nSize));