#i10000# tools api changed
This commit is contained in:
@@ -2027,12 +2027,13 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
|
|||||||
{
|
{
|
||||||
EMFWriter aEMFWriter;
|
EMFWriter aEMFWriter;
|
||||||
SvMemoryStream aStream;
|
SvMemoryStream aStream;
|
||||||
|
|
||||||
if( aEMFWriter.WriteEMF( rMTF, aStream ) )
|
if( aEMFWriter.WriteEMF( rMTF, aStream ) )
|
||||||
{
|
{
|
||||||
aStream.Seek( 0 );
|
sal_Size nTotalSize = aStream.Tell();
|
||||||
sal_Size nTotalSize = aStream.GetSize();
|
|
||||||
if( nTotalSize > SAL_MAX_UINT32 )
|
if( nTotalSize > SAL_MAX_UINT32 )
|
||||||
return;
|
return;
|
||||||
|
aStream.Seek( 0 );
|
||||||
sal_uInt32 nRemainingSize = static_cast< sal_uInt32 >( nTotalSize );
|
sal_uInt32 nRemainingSize = static_cast< sal_uInt32 >( nTotalSize );
|
||||||
sal_uInt32 nRecCounts = ( (nTotalSize - 1) / 0x2000 ) + 1;
|
sal_uInt32 nRecCounts = ( (nTotalSize - 1) / 0x2000 ) + 1;
|
||||||
sal_uInt16 nCheckSum = 0, nWord;
|
sal_uInt16 nCheckSum = 0, nWord;
|
||||||
|
Reference in New Issue
Block a user