diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-11-24 15:05:25 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-11-24 16:08:46 +0100 |
commit | f4f4a899f0d5520a497bbd07ccfef9086c54ca1c (patch) | |
tree | 06c378dc6f5596f90dbfb3f1508c1630be838d2a /editeng | |
parent | Fixed wrong scaling of the anchor icons (diff) | |
download | core-f4f4a899f0d5520a497bbd07ccfef9086c54ca1c.tar.gz core-f4f4a899f0d5520a497bbd07ccfef9086c54ca1c.zip |
RTF import: partly fixed the WMF images scaling.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/rtfgrf.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/editeng/source/rtf/rtfgrf.cxx b/editeng/source/rtf/rtfgrf.cxx index 4ff9f3506f2b..2906caa4ae5e 100644 --- a/editeng/source/rtf/rtfgrf.cxx +++ b/editeng/source/rtf/rtfgrf.cxx @@ -495,15 +495,8 @@ sal_Bool SvxRTFParser::ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType ) } String sTmpStr; - WMF_APMFILEHEADER aAPMHeader; - aAPMHeader.left=0; - aAPMHeader.top=0; - aAPMHeader.right=rPicType.nWidth; - aAPMHeader.bottom=rPicType.nHeight; - - WMF_APMFILEHEADER *pAPMHeader=(aAPMHeader.right>0 && aAPMHeader.bottom>0?&aAPMHeader:NULL); pTmpFile->Seek( STREAM_SEEK_TO_BEGIN ); - bValidBmp = 0 == rGF.ImportGraphic( rGrf, sTmpStr, *pTmpFile, nImportFilter, NULL, 0, pAPMHeader ); + bValidBmp = 0 == rGF.ImportGraphic( rGrf, sTmpStr, *pTmpFile, nImportFilter ); } } |