summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/drawvie3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/drawvie3.cxx')
-rw-r--r--sc/source/ui/view/drawvie3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 7e79ef9b3889..43bf80d1206f 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -197,7 +197,7 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
{
if ( pViewData &&
pViewData->GetViewShell()->GetViewFrame()->HasChildWindow( ScIMapChildWindowId() ) &&
- pObj && ( pObj->ISA(SdrGrafObj) || pObj->ISA(SdrOle2Obj) ) )
+ pObj && ( dynamic_cast<const SdrGrafObj*>( pObj) != nullptr || dynamic_cast<const SdrOle2Obj*>( pObj) != nullptr ) )
{
Graphic aGraphic;
TargetList aTargetList;
@@ -210,7 +210,7 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
pViewData->GetViewShell()->GetViewFrame()->GetTargetList( aTargetList );
// handle graphics from object
- if ( pObj->ISA( SdrGrafObj ) )
+ if ( dynamic_cast<const SdrGrafObj*>( pObj) != nullptr )
aGraphic = static_cast<SdrGrafObj*>(pObj)->GetGraphic();
else
{