catch the exception to prevent broken charts, tdf#98690

Change-Id: I5958c87ca793c19d5c78dc829eb0ff0a1e04dffa
This commit is contained in:
Markus Mohrhard 2016-10-10 00:58:42 +02:00
parent c3cc9429d1
commit 0ab45be62b

View file

@ -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;
}