From b48dc80c770a3ce3296caed24987d2e451a6278c Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 8 Mar 2018 18:33:18 +0900 Subject: svx: convert "ThumbnailGraphicURL" prop. to "ThumbnailGraphic" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id77768e6ad58c8ed7bd35478a8f0cf78ce4b1feb Reviewed-on: https://gerrit.libreoffice.org/50934 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- xmloff/source/draw/ximpshap.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 5e59db4fafcb..740dae0c00a6 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -760,13 +760,13 @@ void SdXMLShapeContext::SetThumbnail() return; uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() ); - if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName( "ThumbnailGraphicURL" ) ) + if( xPropSetInfo.is() && xPropSetInfo->hasPropertyByName( "ThumbnailGraphic" ) ) { // load the thumbnail graphic and export it to a wmf stream so we can set // it at the api - const OUString aInternalURL( GetImport().ResolveGraphicObjectURL( maThumbnailURL, false ) ); - xPropSet->setPropertyValue( "ThumbnailGraphicURL", uno::makeAny( aInternalURL ) ); + uno::Reference xGraphic = GetImport().loadGraphicByURL(maThumbnailURL); + xPropSet->setPropertyValue("ThumbnailGraphic", uno::makeAny(xGraphic)); } } catch(const uno::Exception&) -- cgit