diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 11:13:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-11 11:21:12 +0100 |
commit | 4a35fed86357eaf83141ae0048d265ea75c47392 (patch) | |
tree | 528867be8ddddf28679692aa7db467122e66f50a /svx/source | |
parent | 4355ac8c31cf65988ae806097eeb2f5df63c1e8a (diff) |
coverity#708341 Uninitialized scalar field
Change-Id: If053235eea2d8f003021de733ea73783cf34ed6d
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape3d.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx index 692bec41be44..1e3622f6373a 100644 --- a/svx/source/customshapes/EnhancedCustomShape3d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx @@ -186,9 +186,12 @@ drawing::Direction3D GetDirection3D( SdrCustomShapeGeometryItem& rItem, const OU } EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCustomShape, const Rectangle& /*rBoundRect*/, const double *pM ) -: aCenter( pCustomShape->GetSnapRect().Center() ) -, eProjectionMode( drawing::ProjectionMode_PARALLEL ) -, pMap( pM ) + : aCenter( pCustomShape->GetSnapRect().Center() ) + , eProjectionMode( drawing::ProjectionMode_PARALLEL ) + , fZScreen(0.0) + , fOriginX(0.0) + , fOriginY(0.0) + , pMap( pM ) { SdrCustomShapeGeometryItem& rGeometryItem = (SdrCustomShapeGeometryItem&)pCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ); const OUString sProjectionMode( "ProjectionMode" ); @@ -200,7 +203,6 @@ EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCus GetSkew( rGeometryItem, fSkew, fSkewAngle ); else { - fZScreen = 0.0; GetOrigin( rGeometryItem, fOriginX, fOriginY ); fOriginX = fOriginX * pCustomShape->GetLogicRect().GetWidth(); fOriginY = fOriginY * pCustomShape->GetLogicRect().GetHeight(); |