summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/DocumentLayoutManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/DocumentLayoutManager.cxx')
-rw-r--r--sw/source/core/doc/DocumentLayoutManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/DocumentLayoutManager.cxx b/sw/source/core/doc/DocumentLayoutManager.cxx
index 04638b8751dc..fe7313af3b9a 100644
--- a/sw/source/core/doc/DocumentLayoutManager.cxx
+++ b/sw/source/core/doc/DocumentLayoutManager.cxx
@@ -458,8 +458,8 @@ SwFrameFormat *DocumentLayoutManager::CopyLayoutFormat(
// #i49730# - notify draw frame format that position attributes are
// already set, if the position attributes are already set at the
// source draw frame format.
- if ( pDest->ISA(SwDrawFrameFormat) &&
- rSource.ISA(SwDrawFrameFormat) &&
+ if ( dynamic_cast<const SwDrawFrameFormat*>( pDest) != nullptr &&
+ dynamic_cast<const SwDrawFrameFormat*>( &rSource) != nullptr &&
static_cast<const SwDrawFrameFormat&>(rSource).IsPosAttrSet() )
{
static_cast<SwDrawFrameFormat*>(pDest)->PosAttrSet();