summaryrefslogtreecommitdiff
path: root/xmloff/source/style/chrhghdl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/chrhghdl.cxx')
-rw-r--r--xmloff/source/style/chrhghdl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/style/chrhghdl.cxx b/xmloff/source/style/chrhghdl.cxx
index c6f04f34008f..5417800c6d18 100644
--- a/xmloff/source/style/chrhghdl.cxx
+++ b/xmloff/source/style/chrhghdl.cxx
@@ -135,11 +135,10 @@ bool XMLCharHeightDiffHdl::importXML( const OUString& rStrImpValue, uno::Any& rV
bool XMLCharHeightDiffHdl::exportXML( OUString& rStrExpValue, const uno::Any& rValue, const SvXMLUnitConverter& ) const
{
- OUStringBuffer aOut;
-
float nRel = 0;
if( (rValue >>= nRel) && (nRel != 0) )
{
+ OUStringBuffer aOut;
::sax::Converter::convertMeasure( aOut, static_cast<sal_Int32>(nRel),
util::MeasureUnit::POINT, util::MeasureUnit::POINT );
rStrExpValue = aOut.makeStringAndClear();