summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docfld.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/docfld.cxx')
-rw-r--r--sw/source/core/doc/docfld.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 45fa05b5654d..138ef10815fb 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -257,8 +257,7 @@ bool _SetGetExpFld::operator<( const _SetGetExpFld& rFld ) const
if( pFirst->IsTxtNode() && pNext->IsTxtNode() &&
( pFirst->FindFlyStartNode() || pNext->FindFlyStartNode() ))
{
- return ::IsFrameBehind( *static_cast<const SwTxtNode*>(pNext), nCntnt,
- *static_cast<const SwTxtNode*>(pFirst), nCntnt );
+ return ::IsFrameBehind( *pNext->GetTxtNode(), nCntnt, *pFirst->GetTxtNode(), nCntnt );
}
return pFirstStt->GetIndex() < pNextStt->GetIndex();
}