summaryrefslogtreecommitdiff
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-05-13 22:33:03 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-05-15 09:37:44 +0100
commit324cae2f713e6a192d8cd34c276c73634b5111e4 (patch)
tree45a703225855815776b2eda901d30d60372af07e /svx/source/gallery2
parentb54709dd2ccf9017c3f359b25ff72c038b471ded (diff)
gallery: cleanup scaling code.
Change-Id: I783b0fe54c6273ce3d78996a02da02dc51944606
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r--svx/source/gallery2/galobj.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx
index 462d8cc13837..573dcf6875cb 100644
--- a/svx/source/gallery2/galobj.cxx
+++ b/svx/source/gallery2/galobj.cxx
@@ -99,7 +99,6 @@ sal_Bool SgaObject::CreateThumb( const Graphic& rGraphic )
const float fFactor = (float) aBmpSize.Width() / aBmpSize.Height();
const Size aNewSize( std::max( (long) (fFactor < 1. ? S_THUMB * fFactor : S_THUMB), 8L ),
std::max( (long) (fFactor < 1. ? S_THUMB : S_THUMB / fFactor), 8L ) );
-
if(aThumbBmp.Scale(
(double) aNewSize.Width() / aBmpSize.Width(),
(double) aNewSize.Height() / aBmpSize.Height(),