summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/docinf.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 /sfx2/source/doc/docinf.cxx
parent05857ac3232ee88dc9a2bde4c135f07dd25b4c91 (diff)
thumbnails: Provide the size as a default parameter.
And increase it consistently to 256 pixels. Change-Id: I123e11d597269d7e43298504f1dbd0098c9b0149
Diffstat (limited to 'sfx2/source/doc/docinf.cxx')
-rw-r--r--sfx2/source/doc/docinf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx
index a5f967f69423..f3c56bd05118 100644
--- a/sfx2/source/doc/docinf.cxx
+++ b/sfx2/source/doc/docinf.cxx
@@ -306,8 +306,8 @@ uno::Sequence<sal_uInt8> SFX2_DLLPUBLIC convertMetaFile(GDIMetaFile* i_pThumb)
if (i_pThumb) {
BitmapEx aBitmap;
SvMemoryStream aStream;
-// magic value 160 taken from GraphicHelper::getThumbnailFormatFromGDI_Impl()
- if( i_pThumb->CreateThumbnail( 160, aBitmap ) ) {
+ if (i_pThumb->CreateThumbnail(aBitmap))
+ {
WriteDIB(aBitmap.GetBitmap(), aStream, false, false);
aStream.Seek(STREAM_SEEK_TO_END);
uno::Sequence<sal_uInt8> aSeq(aStream.Tell());