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

coverity#1187661 Unchecked dynamic_cast

Change-Id: I66f8382c7dd7ab8d115204fe45d6a33ff77adb78
üst 583c0ee3
......@@ -544,9 +544,9 @@ void SAL_CALL SdXShape::setPropertyValue( const OUString& aPropertyName, const :
if(bIsAnimation)
{
SdrObjGroup* pGroup = dynamic_cast< SdrObjGroup* >(pObj);
SdPage* pPage = dynamic_cast< SdPage* >(pGroup->GetPage());
SdPage* pPage = pGroup ? dynamic_cast< SdPage* >(pGroup->GetPage()) : NULL;
if(pGroup && pPage)
if (pPage)
{
// #i42894# Animated Group object, migrate that effect
EffectMigration::CreateAnimatedGroup(*pGroup, *pPage);
......
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