summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-04-20 17:22:29 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-20 20:54:16 +0200
commit84aeb737c7c013c8d98d8c40abfca44f6f70cee8 (patch)
tree7c951f402a2a889549940e1ebb3ee733ca38a8b6 /xmloff
parentb37becd401e342bf658f9e9be69dbf7385781f45 (diff)
fdo#48969: switch units in Converter::convertDouble
The factor here is used to divide, so the parameters have to be switched; this has always been broken but probably before 3ca2bef76886450058d1667703aeafe4c2e456c3 nothing called this. This also reverts 7bf1fa3757133f12cf6ca624f8cee6ba5363e7d8 because that was a workaround for the problem in the wrong place.
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmluconv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index f6e06217b188..804bdae9bfc4 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -294,7 +294,7 @@ sal_Bool SvXMLUnitConverter::convertDouble(double& rValue,
rString, m_pImpl->m_eCoreMeasureUnit);
return ::sax::Converter::convertDouble(rValue, rString,
- m_pImpl->m_eCoreMeasureUnit, eSrcUnit);
+ eSrcUnit, m_pImpl->m_eCoreMeasureUnit);
}
else
{