diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:00:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-26 21:25:16 +0100 |
commit | 4cc1ed9ae9532c82deace99689e3eee89c39ef9e (patch) | |
tree | e9121670398147b180c97dc27db74169e6f935e4 /vcl/source | |
parent | fb5a2291e499296a14ecd043341828d57fc50416 (diff) |
coverity#707564 Uninitialized scalar variable
and
coverity#707566 Uninitialized scalar variable
coverity#707568 Uninitialized scalar variable
coverity#707576 Uninitialized scalar variable
coverity#1028320 Uninitialized scalar variable
Change-Id: I7191d019c1d7c4382253272fe7d58d82a4b41e13
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/outdev/map.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index eb82156c8e4f..819f7dbfd8cb 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -1601,6 +1601,10 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r aMapResSource.mnMapScNumY = 1; \ aMapResSource.mnMapScDenomX = 1; \ aMapResSource.mnMapScDenomY = 1; \ + aMapResSource.mfOffsetX = 0.0; \ + aMapResSource.mfOffsetY = 0.0; \ + aMapResSource.mfScaleX = 1.0; \ + aMapResSource.mfScaleY = 1.0; \ ImplMapRes aMapResDest(aMapResSource); \ \ if ( !mbMap || pMapModeSource != &maMapMode ) \ @@ -1661,6 +1665,10 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion, const MapMode& r aMapResSource.mnMapScNumY = 1; \ aMapResSource.mnMapScDenomX = 1; \ aMapResSource.mnMapScDenomY = 1; \ + aMapResSource.mfOffsetX = 0.0; \ + aMapResSource.mfOffsetY = 0.0; \ + aMapResSource.mfScaleX = 1.0; \ + aMapResSource.mfScaleY = 1.0; \ ImplMapRes aMapResDest(aMapResSource); \ \ ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \ |