summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unopage.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-02-03 15:59:05 +0100
committerJan Holesovsky <kendy@collabora.com>2014-02-03 19:09:19 +0100
commit1e8c4b769774226ae16dbb308e89e9a5fd0adde1 (patch)
tree4a82532c442c86dfd11d98696f914ab286c825dd /sd/source/ui/unoidl/unopage.cxx
parent05857ac3232ee88dc9a2bde4c135f07dd25b4c91 (diff)
thumbnails: Provide the size as a default parameter.
And increase it consistently to 256 pixels. Change-Id: I123e11d597269d7e43298504f1dbd0098c9b0149
Diffstat (limited to 'sd/source/ui/unoidl/unopage.cxx')
-rw-r--r--sd/source/ui/unoidl/unopage.cxx3
1 files changed, 1 insertions, 2 deletions
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<GDIMetaFile> 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);