From 55ff58a4084acbdd031ae1d79f0b740e91b15fd0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 20 Jan 2017 16:09:28 +0000 Subject: don't need an intermediate Image Change-Id: I2700c30000b440a0646d43bb5712fe683747b34b --- svtools/source/graphic/provider.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svtools/source/graphic') diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx index f4631b796091..a7709062f858 100644 --- a/svtools/source/graphic/provider.cxx +++ b/svtools/source/graphic/provider.cxx @@ -184,8 +184,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadRepositoryImage( BitmapEx aBitmap; if ( vcl::ImageRepository::loadImage( sPathName, aBitmap, false ) ) { - Image aImage( aBitmap ); - xRet = aImage.GetXGraphic(); + xRet = Graphic(aBitmap).GetXGraphic(); } } return xRet; -- cgit