diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 14:06:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:55:28 +0200 |
commit | d2d85921605415908c553e84db654628f9f0c0b1 (patch) | |
tree | 161816623c32febde1c62d524fa1ef0a20a1aeda /vcl/source/filter/wmf/enhwmf.cxx | |
parent | 26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (diff) |
loplugin:oncevar in vcl
Change-Id: I37a6dacda12e1c2910737d74aa344c7e2e195aeb
Reviewed-on: https://gerrit.libreoffice.org/39328
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter/wmf/enhwmf.cxx')
-rw-r--r-- | vcl/source/filter/wmf/enhwmf.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx index 0a22ab3762fd..12ee4ddb86b6 100644 --- a/vcl/source/filter/wmf/enhwmf.cxx +++ b/vcl/source/filter/wmf/enhwmf.cxx @@ -1270,7 +1270,6 @@ bool EnhWMFReader::ReadEnhWMF() pWMF->ReadUInt32( BkColorSrc ).ReadUInt32( iUsageSrc ).ReadUInt32( offBmiSrc ).ReadUInt32( cbBmiSrc ) .ReadUInt32( offBitsSrc ).ReadUInt32( cbBitsSrc ).ReadInt32( cxSrc ).ReadInt32( cySrc ) ; - sal_uInt32 dwRop = SRCAND|SRCINVERT; tools::Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) ); if ( (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc) ) @@ -1382,7 +1381,7 @@ bool EnhWMFReader::ReadEnhWMF() aPNGWriter.Write(aNew); } #endif - aBmpSaveList.emplace_back(new BSaveStruct(aBitmapEx, aRect, dwRop)); + aBmpSaveList.emplace_back(new BSaveStruct(aBitmapEx, aRect, SRCAND|SRCINVERT)); } } } |