diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-02-03 15:59:05 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-02-03 19:09:19 +0100 |
commit | 1e8c4b769774226ae16dbb308e89e9a5fd0adde1 (patch) | |
tree | 4a82532c442c86dfd11d98696f914ab286c825dd /sfx2/source | |
parent | 05857ac3232ee88dc9a2bde4c135f07dd25b4c91 (diff) |
thumbnails: Provide the size as a default parameter.
And increase it consistently to 256 pixels.
Change-Id: I123e11d597269d7e43298504f1dbd0098c9b0149
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/doc/docinf.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/graphhelp.cxx | 2 |
2 files changed, 3 insertions, 3 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()); diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx index 7cd16ee195d3..515384ea4fbd 100644 --- a/sfx2/source/doc/graphhelp.cxx +++ b/sfx2/source/doc/graphhelp.cxx @@ -283,7 +283,7 @@ sal_Bool GraphicHelper::getThumbnailFormatFromGDI_Impl( GDIMetaFile* pMetaFile, if ( bSigned ) pSignatureBitmap = new BitmapEx( SfxResId( BMP_SIGNATURE ) ); - bResult = pMetaFile->CreateThumbnail(THUMBNAIL_RESOLUTION, aResultBitmap, pSignatureBitmap); + bResult = pMetaFile->CreateThumbnail(aResultBitmap, THUMBNAIL_RESOLUTION, pSignatureBitmap); if ( bResult ) bResult = ( !aResultBitmap.IsEmpty() |