From 1e8c4b769774226ae16dbb308e89e9a5fd0adde1 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 3 Feb 2014 15:59:05 +0100 Subject: thumbnails: Provide the size as a default parameter. And increase it consistently to 256 pixels. Change-Id: I123e11d597269d7e43298504f1dbd0098c9b0149 --- sd/source/ui/unoidl/unopage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 21fd8b534ee0..1aaa1c15934b 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -1111,8 +1111,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName ) ::boost::shared_ptr pMetaFile = pDocShell->GetPreviewMetaFile(); BitmapEx aBitmap; - if ( pMetaFile && pMetaFile->CreateThumbnail( 160, /* magic value taken from GraphicHelper::getThumbnailFormatFromGDI_Impl() */ - aBitmap ) ) + if (pMetaFile && pMetaFile->CreateThumbnail(aBitmap)) { SvMemoryStream aMemStream; WriteDIB(aBitmap.GetBitmap(), aMemStream, false, false); -- cgit