summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-20 11:09:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-20 11:09:45 +0000
commitd1f18710788163a566c97b7fe9ec301f65535c51 (patch)
treecdf342dd965082b85e49d5f6883042e4ec7b0956 /framework
parente22f32b65465b5ae6e71acdf5ae4fceb379d7cb0 (diff)
don't need an intermediate Image
Change-Id: Ibdc4b94e284a1d54b94abfdeb99df393b6a7bf59
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 89583b33d7fa..6d6e6bae05d2 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -229,7 +229,7 @@ static bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGraphic
}
// Check size and scale it
- Image aImage( rInGraphic );
+ Graphic aImage(rInGraphic);
Size aSize = aImage.GetSizePixel();
bool bMustScale( false );
@@ -244,7 +244,7 @@ static bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGraphic
{
BitmapEx aBitmap = aImage.GetBitmapEx();
aBitmap.Scale( aNormSize );
- aImage = Image( aBitmap );
+ aImage = Graphic(aBitmap);
rOutGraphic = aImage.GetXGraphic();
}
else