summaryrefslogtreecommitdiff
path: root/xmloff/source/transform
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-08-11 13:13:35 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-08-11 14:19:24 +0200
commitbfed58821fc3a83fec4a985087cd45fa963bed3e (patch)
tree427156ed03b2b72069e47d9f1250dc36670c09cf /xmloff/source/transform
parentc46950fee11f5207fb8324947280cd565ae483e7 (diff)
Drop convertMm100ToTwip in favor of the new o3tl::toTwips
Step by step, duplicates from <tools/UnitConversion.hxx> may go Change-Id: Id4c03ff8adc120ae06dbfdbdfb4f5ff0bb51f489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120315 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r--xmloff/source/transform/TransformerBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx
index 8814d19f26af..f75a2755223e 100644
--- a/xmloff/source/transform/TransformerBase.cxx
+++ b/xmloff/source/transform/TransformerBase.cxx
@@ -722,7 +722,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList(
if (::sax::Converter::convertMeasure(nMeasure,
aAttrValue))
{
- nMeasure = static_cast<sal_Int32>(convertMm100ToTwip(nMeasure));
+ nMeasure = o3tl::toTwips(nMeasure, o3tl::Length::mm100);
OUStringBuffer aBuffer;
::sax::Converter::convertMeasure( aBuffer,