summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLFontStylesContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/XMLFontStylesContext.cxx')
-rw-r--r--xmloff/source/style/XMLFontStylesContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx
index b56460353b0b..ba57fea0da03 100644
--- a/xmloff/source/style/XMLFontStylesContext.cxx
+++ b/xmloff/source/style/XMLFontStylesContext.cxx
@@ -317,10 +317,10 @@ void XMLFontStyleContextFontFaceUri::handleEmbeddedFont( const OUString& url, bo
if( GetImport().IsPackageURL( url ))
{
uno::Reference< embed::XStorage > storage;
- storage.set( GetImport().GetSourceStorage(), UNO_QUERY_THROW );
+ storage.set( GetImport().GetSourceStorage(), UNO_SET_THROW );
if( url.indexOf( '/' ) > -1 ) // TODO what if more levels?
storage.set( storage->openStorageElement( url.copy( 0, url.indexOf( '/' )),
- ::embed::ElementModes::READ ), uno::UNO_QUERY_THROW );
+ ::embed::ElementModes::READ ), uno::UNO_SET_THROW );
uno::Reference< io::XInputStream > inputStream;
inputStream.set( storage->openStreamElement( url.copy( url.indexOf( '/' ) + 1 ), ::embed::ElementModes::READ ),
UNO_QUERY_THROW );