diff options
Diffstat (limited to 'sw/source/core/text/porrst.cxx')
-rw-r--r-- | sw/source/core/text/porrst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/porrst.cxx b/sw/source/core/text/porrst.cxx index c2b029ebc37a..5645b7365d05 100644 --- a/sw/source/core/text/porrst.cxx +++ b/sw/source/core/text/porrst.cxx @@ -207,7 +207,7 @@ SwTwips SwTextFrm::EmptyHeight() const { if (IsCollapse()) { SwViewShell *pSh = getRootFrm()->GetCurrShell(); - if ( pSh->IsA( TYPE(SwCrsrShell) ) ) { + if ( dynamic_cast<const SwCrsrShell*>( pSh ) != nullptr ) { SwCrsrShell *pCrSh = static_cast<SwCrsrShell*>(pSh); SwContentFrm *pCurrFrm=pCrSh->GetCurrFrm(); if (pCurrFrm==static_cast<SwContentFrm const *>(this)) { |