diff options
Diffstat (limited to 'sw/source/core/unocore/unosect.cxx')
-rw-r--r-- | sw/source/core/unocore/unosect.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx index 8bc2ccd96310..2751658d330b 100644 --- a/sw/source/core/unocore/unosect.cxx +++ b/sw/source/core/unocore/unosect.cxx @@ -1099,7 +1099,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException, pEnclosingSection = pEnclosingSection->GetParent(); } SwTOXBaseSection* const pTOXBaseSect = pEnclosingSection ? - PTR_CAST(SwTOXBaseSection, pEnclosingSection) : NULL; + dynamic_cast<SwTOXBaseSection*>( pEnclosingSection ) : NULL; if (pTOXBaseSect) { // convert section to TOXBase and get SwXDocumentIndex |