diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 12:39:18 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2005-09-23 12:39:18 +0000 |
commit | a16eaec9364d0c880858108e764c510aba8c7ed6 (patch) | |
tree | 917b15a6816f28723e9977b77609d262dbe83f05 /svtools | |
parent | a4248e1951057448ad4209e43ab844b09bf9127d (diff) |
INTEGRATION: CWS sj22 (1.23.144); FILE MERGED
2005/08/08 11:09:36 sj 1.23.144.2: RESYNC: (1.23-1.24); FILE MERGED
2005/06/30 08:36:10 sj 1.23.144.1: #i122882# graphic with negative size is no longer disapearing
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter.vcl/wmf/enhwmf.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/filter.vcl/wmf/enhwmf.cxx b/svtools/source/filter.vcl/wmf/enhwmf.cxx index 2abc1ebb1d07..39b96687bc67 100644 --- a/svtools/source/filter.vcl/wmf/enhwmf.cxx +++ b/svtools/source/filter.vcl/wmf/enhwmf.cxx @@ -4,9 +4,9 @@ * * $RCSfile: enhwmf.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: rt $ $Date: 2005-09-08 15:45:37 $ + * last change: $Author: hr $ $Date: 2005-09-23 13:39:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -842,12 +842,12 @@ BOOL EnhWMFReader::ReadEnhWMF() // SvStream & rStreamWMF, GDIMetaFile & rGDIMeta >> xformSrc >> nColor >> iUsageSrc >> offBmiSrc >> cbBmiSrc >> offBitsSrc >> cbBitsSrc >> cxSrc >> cySrc; - cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative - cyDest = abs( (int)cyDest ); - Bitmap aBitmap; Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) ); + cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative + cyDest = abs( (int)cyDest ); // and also 122889 + if ( offBmiSrc ) { UINT32 nSize = cbBmiSrc + cbBitsSrc + 14; @@ -892,12 +892,12 @@ BOOL EnhWMFReader::ReadEnhWMF() // SvStream & rStreamWMF, GDIMetaFile & rGDIMeta *pWMF >> xDest >> yDest >> xSrc >> ySrc >> cxSrc >> cySrc >> offBmiSrc >> cbBmiSrc >> offBitsSrc >> cbBitsSrc >> iUsageSrc >> dwRop >> cxDest >> cyDest; - cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative - cyDest = abs( (int)cyDest ); - Bitmap aBitmap; Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) ); + cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative + cyDest = abs( (int)cyDest ); // and also 122889 + UINT32 nSize = cbBmiSrc + cbBitsSrc + 14; char* pBuf = new char[ nSize ]; SvMemoryStream aTmp( pBuf, nSize, STREAM_READ | STREAM_WRITE ); |