Kaydet (Commit) 4a35fed8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708341 Uninitialized scalar field

Change-Id: If053235eea2d8f003021de733ea73783cf34ed6d
üst 4355ac8c
...@@ -186,9 +186,12 @@ drawing::Direction3D GetDirection3D( SdrCustomShapeGeometryItem& rItem, const OU ...@@ -186,9 +186,12 @@ drawing::Direction3D GetDirection3D( SdrCustomShapeGeometryItem& rItem, const OU
} }
EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCustomShape, const Rectangle& /*rBoundRect*/, const double *pM ) EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCustomShape, const Rectangle& /*rBoundRect*/, const double *pM )
: aCenter( pCustomShape->GetSnapRect().Center() ) : aCenter( pCustomShape->GetSnapRect().Center() )
, eProjectionMode( drawing::ProjectionMode_PARALLEL ) , eProjectionMode( drawing::ProjectionMode_PARALLEL )
, pMap( pM ) , fZScreen(0.0)
, fOriginX(0.0)
, fOriginY(0.0)
, pMap( pM )
{ {
SdrCustomShapeGeometryItem& rGeometryItem = (SdrCustomShapeGeometryItem&)pCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY ); SdrCustomShapeGeometryItem& rGeometryItem = (SdrCustomShapeGeometryItem&)pCustomShape->GetMergedItem( SDRATTR_CUSTOMSHAPE_GEOMETRY );
const OUString sProjectionMode( "ProjectionMode" ); const OUString sProjectionMode( "ProjectionMode" );
...@@ -200,7 +203,6 @@ EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCus ...@@ -200,7 +203,6 @@ EnhancedCustomShape3d::Transformation2D::Transformation2D( const SdrObject* pCus
GetSkew( rGeometryItem, fSkew, fSkewAngle ); GetSkew( rGeometryItem, fSkew, fSkewAngle );
else else
{ {
fZScreen = 0.0;
GetOrigin( rGeometryItem, fOriginX, fOriginY ); GetOrigin( rGeometryItem, fOriginX, fOriginY );
fOriginX = fOriginX * pCustomShape->GetLogicRect().GetWidth(); fOriginX = fOriginX * pCustomShape->GetLogicRect().GetWidth();
fOriginY = fOriginY * pCustomShape->GetLogicRect().GetHeight(); fOriginY = fOriginY * pCustomShape->GetLogicRect().GetHeight();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment