diff options
Diffstat (limited to 'sw/source/uibase/ribbar/concustomshape.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/concustomshape.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/ribbar/concustomshape.cxx b/sw/source/uibase/ribbar/concustomshape.cxx index cd520a19f67a..0c7bf74f6371 100644 --- a/sw/source/uibase/ribbar/concustomshape.cxx +++ b/sw/source/uibase/ribbar/concustomshape.cxx @@ -183,7 +183,7 @@ void ConstCustomShape::CreateDefaultObject() if ( rMarkList.GetMarkCount() == 1 ) { SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); - if ( pObj && pObj->ISA( SdrObjCustomShape ) ) + if ( pObj && dynamic_cast< const SdrObjCustomShape *>( pObj ) != nullptr ) SetAttributes( pObj ); } } |