diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-10 00:58:42 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-10-11 04:16:20 +0200 |
commit | 0ab45be62bc1ffcbdd13aca7375fdcd1bbccb79a (patch) | |
tree | 481d163c07b6f4a596c46cb6b87b5232edde6d96 /xmloff/source/chart/PropertyMaps.cxx | |
parent | c3cc9429d136178996d797ef8fd6d740b39cc94e (diff) |
catch the exception to prevent broken charts, tdf#98690
Change-Id: I5958c87ca793c19d5c78dc829eb0ff0a1e04dffa
Diffstat (limited to 'xmloff/source/chart/PropertyMaps.cxx')
-rw-r--r-- | xmloff/source/chart/PropertyMaps.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xmloff/source/chart/PropertyMaps.cxx b/xmloff/source/chart/PropertyMaps.cxx index 72dcf2ca9faf..30ff2a6d1160 100644 --- a/xmloff/source/chart/PropertyMaps.cxx +++ b/xmloff/source/chart/PropertyMaps.cxx @@ -360,8 +360,15 @@ OUString convertRange( const OUString & rRange, const uno::Reference< chart2::XC return aResult; uno::Reference< chart2::data::XRangeXMLConversion > xConversion( xDoc->getDataProvider(), uno::UNO_QUERY ); - if( xConversion.is()) - aResult = xConversion->convertRangeToXML( rRange ); + try + { + if( xConversion.is()) + aResult = xConversion->convertRangeToXML( rRange ); + } + catch (css::lang::IllegalArgumentException&) + { + } + return aResult; } |