From 0ab45be62bc1ffcbdd13aca7375fdcd1bbccb79a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 10 Oct 2016 00:58:42 +0200 Subject: [PATCH] catch the exception to prevent broken charts, tdf#98690 Change-Id: I5958c87ca793c19d5c78dc829eb0ff0a1e04dffa --- xmloff/source/chart/PropertyMaps.cxx | 11 +++++++++-- 1 file 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; }