diff options
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index a045c36d071e..11810e3cb018 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -742,7 +742,7 @@ void ScDetectiveFunc::DeleteBox( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nR while (pObject) { if ( pObject->GetLayer() == SC_LAYER_INTERN && - typeid(*pObject) == typeid(SdrRectObj) ) + dynamic_cast< const SdrRectObj* >(pObject) != nullptr ) { aObjRect = static_cast<SdrRectObj*>(pObject)->GetLogicRect(); aObjRect.Justify(); |