summaryrefslogtreecommitdiff
path: root/sd/source/core/drawdoc2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/core/drawdoc2.cxx')
-rw-r--r--sd/source/core/drawdoc2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 4f08dd3c0fc1..dac47fe62954 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -981,7 +981,7 @@ IMapObject* SdDrawDocument::GetHitIMapObject( SdrObject* pObj,
bool bObjSupported = false;
// execute HitTest
- if ( pObj->ISA( SdrGrafObj ) ) // simple graphics object
+ if ( dynamic_cast< const SdrGrafObj *>( pObj ) != nullptr ) // simple graphics object
{
const SdrGrafObj* pGrafObj = static_cast<const SdrGrafObj*>(pObj);
const GeoStat& rGeo = pGrafObj->GetGeoStat();
@@ -1008,7 +1008,7 @@ IMapObject* SdDrawDocument::GetHitIMapObject( SdrObject* pObj,
delete pGeoData;
bObjSupported = true;
}
- else if ( pObj->ISA( SdrOle2Obj ) ) // OLE object
+ else if ( dynamic_cast<const SdrOle2Obj* >(pObj) != nullptr ) // OLE object
{
aGraphSize = static_cast<SdrOle2Obj*>( pObj )->GetOrigObjSize();
bObjSupported = true;