summaryrefslogtreecommitdiff
path: root/svtools/source/uno/treecontrolpeer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/uno/treecontrolpeer.cxx')
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 1dc40e8092a0..ccce5deb75e6 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -1448,13 +1448,11 @@ bool TreeControlPeer::loadImage( const OUString& rURL, Image& rImage )
{
if( !mxGraphicProvider.is() )
{
- Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
- Reference< XInterface > x( graphic::GraphicProvider::create(xContext) );
- mxGraphicProvider.query( x );
- mxGraphicProvider = Reference< XGraphicProvider >( x, UNO_QUERY );
+ mxGraphicProvider = graphic::GraphicProvider::create(
+ comphelper::getProcessComponentContext());
}
- if( mxGraphicProvider.is() ) try
+ try
{
::com::sun::star::beans::PropertyValues aProps( 1 );
aProps[0].Name = "URL";