diff options
Diffstat (limited to 'sw/source/core/docnode/node.cxx')
-rw-r--r-- | sw/source/core/docnode/node.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index 64c7e59d9bae..e4f7d5a21de7 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -670,9 +670,9 @@ const SwPageDesc* SwNode::FindPageDesc( bool bCalcLay, static_cast<const SwFormatPageDesc*>(pItem)->GetDefinedIn() ) { const SwModify* pMod = static_cast<const SwFormatPageDesc*>(pItem)->GetDefinedIn(); - if( pMod->ISA( SwContentNode ) ) + if( dynamic_cast<const SwContentNode*>( pMod) != nullptr ) aInfo.CheckNode( *static_cast<const SwContentNode*>(pMod) ); - else if( pMod->ISA( SwFormat )) + else if( dynamic_cast<const SwFormat*>( pMod) != nullptr) static_cast<const SwFormat*>(pMod)->GetInfo( aInfo ); } } |