summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorRelease Engineering <releng@openoffice.org>2010-02-01 14:09:37 +0100
committerRelease Engineering <releng@openoffice.org>2010-02-01 14:09:37 +0100
commitda2c680d23b67d4721aa29f740475fd6d40e2e08 (patch)
tree66c4551e205c894512b3cda07435267f33c002c5 /svtools
parent8da5fabbe6d9f1dc6e01290c2800c1ddaa686f85 (diff)
#i10000# tools api changed
Notes
split repo tag: libs-gui_ooo/DEV300_m71
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter.vcl/wmf/wmfwr.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/filter.vcl/wmf/wmfwr.cxx b/svtools/source/filter.vcl/wmf/wmfwr.cxx
index ba812780d97c..c4f53046c29a 100644
--- a/svtools/source/filter.vcl/wmf/wmfwr.cxx
+++ b/svtools/source/filter.vcl/wmf/wmfwr.cxx
@@ -2027,12 +2027,13 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
{
EMFWriter aEMFWriter;
SvMemoryStream aStream;
+
if( aEMFWriter.WriteEMF( rMTF, aStream ) )
{
- aStream.Seek( 0 );
- sal_Size nTotalSize = aStream.GetSize();
+ sal_Size nTotalSize = aStream.Tell();
if( nTotalSize > SAL_MAX_UINT32 )
return;
+ aStream.Seek( 0 );
sal_uInt32 nRemainingSize = static_cast< sal_uInt32 >( nTotalSize );
sal_uInt32 nRecCounts = ( (nTotalSize - 1) / 0x2000 ) + 1;
sal_uInt16 nCheckSum = 0, nWord;