summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index 6e86da36ed2f..c9149b9ae87a 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -2915,15 +2915,16 @@ XMLFontAutoStylePool* SdXMLExport::CreateFontAutoStylePool()
Reference< lang::XMultiServiceFactory > xFac( GetModel(), UNO_QUERY );
if( xFac.is() )
{
- Reference<beans::XPropertySet> const xProps( xFac->createInstance(
- "com.sun.star.document.Settings"), UNO_QUERY );
- if (xProps.is())
+ try
{
- try // clipboard document doesn't have shell so throws here
- {
- xProps->getPropertyValue("EmbedFonts") >>= bEmbedFonts;
- }
- catch (uno::Exception const&) { }
+ Reference<beans::XPropertySet> const xProps( xFac->createInstance(
+ "com.sun.star.document.Settings"), UNO_QUERY_THROW );
+ xProps->getPropertyValue("EmbedFonts") >>= bEmbedFonts;
+ }
+ catch (...)
+ {
+ // clipboard document doesn't have shell so throws from getPropertyValue
+ // gallery elements may not support com.sun.star.document.Settings so throws from createInstance
}
}
}