fdo#39066: using UNO_QUERY instead of UNO_QUERY_THROW displays hyperlinks

Change-Id: Iafa9e273c009fe0772a9401b47b51738dc235a13
Reviewed-on: https://gerrit.libreoffice.org/3296
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Chr. Rossmanith
2013-04-09 21:39:38 +02:00
committed by Caolán McNamara
parent 63d46499b0
commit 7bcba4c910

View File

@@ -365,7 +365,7 @@ void SdXMLShapeContext::EndElement()
OUString sLink( "Hyperlink" );
if ( xProp.is() && xProp->getPropertySetInfo()->hasPropertyByName( sLink ) )
xProp->setPropertyValue( sLink, uno::Any( msHyperlink ) );
Reference< XEventsSupplier > xEventsSupplier( mxShape, UNO_QUERY_THROW );
Reference< XEventsSupplier > xEventsSupplier( mxShape, UNO_QUERY );
const OUString sBookmark( "Bookmark" );
if( xEventsSupplier.is() )