summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-10 00:58:42 +0200
committerEike Rathke <erack@redhat.com>2016-10-13 16:09:55 +0000
commitcf5d6ccea23549aea708c6e399a982598b2b58aa (patch)
treebfb8c14bcd608656b7e5a522a00f3e9cb1543cf0 /xmloff
parent98b580b302267fb7c781e94ef6d175d696e9e848 (diff)
catch the exception to prevent broken charts, tdf#98690
Change-Id: I5958c87ca793c19d5c78dc829eb0ff0a1e04dffa (cherry picked from commit 0ab45be62bc1ffcbdd13aca7375fdcd1bbccb79a) Reviewed-on: https://gerrit.libreoffice.org/29682 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/PropertyMaps.cxx11
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;
}