coverity#705000 Unchecked dynamic_cast

Change-Id: Iae20a0ab45779483fc501e5ab982e38f38ba21b7
Reviewed-on: https://gerrit.libreoffice.org/8425
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2014-03-02 21:04:53 +00:00
parent 2aa4b7e1f0
commit bd1014e245

View File

@@ -952,7 +952,8 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
if ( ( ( rObjData.nSpFlags & SP_FFLIPV ) || mnFix16Angle || nTextRotationAngle ) && dynamic_cast< SdrObjCustomShape* >( pObj ) )
{
SdrObjCustomShape* pCustomShape = dynamic_cast< SdrObjCustomShape* >( pObj );
if (pCustomShape)
{
double fExtraTextRotation = 0.0;
if ( mnFix16Angle && !( GetPropertyValue( DFF_Prop_FitTextToShape ) & 4 ) )
{ // text is already rotated, we have to take back the object rotation if DFF_Prop_RotateText is false
@@ -975,6 +976,7 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
pCustomShape->SetMergedItem( aGeometryItem );
}
}
}
else if ( mnFix16Angle )
{
// rotate text with shape ?