diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 11:09:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-20 11:09:45 +0000 |
commit | d1f18710788163a566c97b7fe9ec301f65535c51 (patch) | |
tree | cdf342dd965082b85e49d5f6883042e4ec7b0956 /framework/source | |
parent | e22f32b65465b5ae6e71acdf5ae4fceb379d7cb0 (diff) |
don't need an intermediate Image
Change-Id: Ibdc4b94e284a1d54b94abfdeb99df393b6a7bf59
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uiconfiguration/imagemanagerimpl.cxx | 4 |
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 |