Kaydet (Commit) 45090bee authored tarafından Noel Grandin's avatar Noel Grandin

remove unused Handles enumerator from DefaultType enum

Change-Id: Iabda70ec3bc3204d5d383bcb93e174d90e405620
Reviewed-on: https://gerrit.libreoffice.org/34208Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 9778a2c9
......@@ -178,7 +178,6 @@ public:
StretchX,
StretchY,
Equations,
Handles,
TextFrames
};
bool IsDefaultGeometry( const DefaultType eDefaultType ) const;
......
......@@ -1305,35 +1305,6 @@ bool SdrObjCustomShape::IsDefaultGeometry( const DefaultType eDefaultType ) cons
bIsDefaultGeometry = true;
}
break;
case DefaultType::Handles :
{
const OUString sHandles( "Handles" );
pAny = ((SdrCustomShapeGeometryItem&)aGeometryItem).GetPropertyValueByName( sHandles );
if ( pAny && pDefCustomShape && pDefCustomShape->nHandles && pDefCustomShape->pHandles )
{
css::uno::Sequence< css::beans::PropertyValues > seqHandles1, seqHandles2;
if ( *pAny >>= seqHandles1 )
{
sal_Int32 i, nCount = pDefCustomShape->nHandles;
const SvxMSDffHandle* pData = pDefCustomShape->pHandles;
seqHandles2.realloc( nCount );
for ( i = 0; i < nCount; i++, pData++ )
{
sal_Int32 nPropertiesNeeded;
css::beans::PropertyValues& rPropValues = seqHandles2[ i ];
nPropertiesNeeded = GetNumberOfProperties( pData );
rPropValues.realloc( nPropertiesNeeded );
lcl_ShapePropertiesFromDFF( pData, rPropValues );
}
if ( seqHandles1 == seqHandles2 )
bIsDefaultGeometry = true;
}
}
else if ( pDefCustomShape && ( ( pDefCustomShape->nHandles == 0 ) || ( pDefCustomShape->pHandles == nullptr ) ) )
bIsDefaultGeometry = true;
}
break;
}
return bIsDefaultGeometry;
}
......
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