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:
@@ -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 ?
|
||||
|
Reference in New Issue
Block a user