diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 5e6571319d18..3f7d0e83634c 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -500,7 +500,7 @@ SvXMLExport::SvXMLExport( const OUString &rFileName, const uno::Reference< xml::sax::XDocumentHandler > & rHandler, const Reference< XModel >& rModel, - sal_Int16 const eDefaultFieldUnit) + FieldUnit const eDefaultFieldUnit) : mpImpl( new SvXMLExport_Impl ), m_xContext(xContext), m_implementationName(implementationName), mxModel( rModel ), diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index d271df307810..c441566b3546 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -129,7 +129,7 @@ SvXMLUnitConverter::~SvXMLUnitConverter() { } -sal_Int16 SvXMLUnitConverter::GetMeasureUnit(sal_Int16 const nFieldUnit) +sal_Int16 SvXMLUnitConverter::GetMeasureUnit(FieldUnit const nFieldUnit) { sal_Int16 eUnit = util::MeasureUnit::INCH; switch( nFieldUnit ) @@ -152,6 +152,12 @@ sal_Int16 SvXMLUnitConverter::GetMeasureUnit(sal_Int16 const nFieldUnit) case FUNIT_100TH_MM: eUnit = util::MeasureUnit::MM_100TH; break; + case FUNIT_INCH: + eUnit = util::MeasureUnit::INCH; + break; + default: + assert(false); + break; } return eUnit; } |