diff options
author | Release Engineers <releng@openoffice.org> | 2008-12-01 16:41:51 +0000 |
---|---|---|
committer | Release Engineers <releng@openoffice.org> | 2008-12-01 16:41:51 +0000 |
commit | e06fc9110b7268b4c8bc635ed929ad348ace30d0 (patch) | |
tree | 8232c196aeb471b4b82b6840fa7cebb36c03f499 /oox/source/docprop | |
parent | 9835a2e4f114ce94645eba77578562f948d52236 (diff) |
CWS-TOOLING: integrate CWS mav42_DEV300
Diffstat (limited to 'oox/source/docprop')
-rw-r--r-- | oox/source/docprop/docprophandler.cxx | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx index 4b9c1b52ff60..281afef02672 100644 --- a/oox/source/docprop/docprophandler.cxx +++ b/oox/source/docprop/docprophandler.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: docprophandler.cxx,v $ - * $Revision: 1.2 $ + * $Revision: 1.2.22.1 $ * * This file is part of OpenOffice.org. * @@ -521,7 +521,15 @@ void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars ) break; case XML_revision|NMSP_COREPR: - m_xDocProp->setEditingCycles( (sal_Int16)aChars.toInt32() ); + try + { + m_xDocProp->setEditingCycles( + static_cast<sal_Int16>(aChars.toInt32()) ); + } + catch (lang::IllegalArgumentException &) + { + // ignore + } break; case XML_subject|NMSP_DC: @@ -549,7 +557,14 @@ void SAL_CALL OOXMLDocPropHandler::characters( const ::rtl::OUString& aChars ) break; case XML_TotalTime|NMSP_EXTPR: - m_xDocProp->setEditingDuration( aChars.toInt32() ); + try + { + m_xDocProp->setEditingDuration( aChars.toInt32() ); + } + catch (lang::IllegalArgumentException &) + { + // ignore + } break; case XML_Characters|NMSP_EXTPR: |