summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-12-09 12:50:33 +0000
committerRüdiger Timm <rt@openoffice.org>2008-12-09 12:50:33 +0000
commit3a91fde276caa644d90f02da0e102dd4915fc460 (patch)
tree38201901a177c3b4e80938328ffac274c87c3989 /svtools
parent4c69fc8f2c08b6ee822124c686897a50785b4714 (diff)
CWS-TOOLING: integrate CWS sjfixes11_DEV300
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/transfer.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 0d688befddd8..7e882dac35ff 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -78,6 +78,7 @@
#include "urlbmk.hxx"
#include "inetimg.hxx"
+#include <svtools/wmf.hxx>
#include <svtools/imap.hxx>
#include <svtools/transfer.hxx>
@@ -286,10 +287,10 @@ Any SAL_CALL TransferableHelper::getTransferData( const DataFlavor& rFlavor ) th
*pSrcStm >> aMtf;
delete pSrcStm;
- Graphic aGraphic( aMtf );
SvMemoryStream aDstStm( 65535, 65535 );
- if( GraphicConverter::Export( aDstStm, aGraphic, CVT_WMF ) == ERRCODE_NONE )
+ // taking wmf without file header
+ if ( ConvertGDIMetaFileToWMF( aMtf, aDstStm, NULL, FALSE ) )
{
maAny <<= ( aSeq = Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aDstStm.GetData() ),
aDstStm.Seek( STREAM_SEEK_TO_END ) ) );