diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-03-08 18:33:18 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-03-09 05:11:31 +0100 |
commit | b48dc80c770a3ce3296caed24987d2e451a6278c (patch) | |
tree | 5370f5d380c416cef0e97f2df862799ed171a91b /xmloff | |
parent | fb29e6eeeaad5255bb924ff59162a83ed80bfb0a (diff) |
svx: convert "ThumbnailGraphicURL" prop. to "ThumbnailGraphic"
Change-Id: Id77768e6ad58c8ed7bd35478a8f0cf78ce4b1feb
Reviewed-on: https://gerrit.libreoffice.org/50934
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<graphic::XGraphic> xGraphic = GetImport().loadGraphicByURL(maThumbnailURL); + xPropSet->setPropertyValue("ThumbnailGraphic", uno::makeAny(xGraphic)); } } catch(const uno::Exception&) |