diff options
Diffstat (limited to 'sw/source/core/doc/CntntIdxStore.cxx')
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 7b4e8a6d58f9..2251d4dc83a3 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -413,7 +413,7 @@ void ContentIdxStoreImpl::SaveShellCrsrs(SwDoc* pDoc, sal_uLong nNode, sal_Int32 return; for(SwViewShell& rCurShell : pShell->GetRingContainer()) { - if( rCurShell.IsA( TYPE( SwCrsrShell )) ) + if( dynamic_cast<const SwCrsrShell *>(&rCurShell) != nullptr ) { SwPaM *_pStkCrsr = static_cast<SwCrsrShell*>(&rCurShell)->GetStkCrsr(); if( _pStkCrsr ) |