diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx index e9cf9479dc91..786cca7ffbae 100644 --- a/sw/source/core/layout/sectfrm.cxx +++ b/sw/source/core/layout/sectfrm.cxx @@ -1749,7 +1749,7 @@ SwLayoutFrame *SwFrame::GetNextSctLeaf( MakePageType eMakePage ) pNxt = static_cast(pTmp); else { - OSL_ENSURE( pTmp->IsTabFrame(), "GetNextSctLeaf: Wrong Type" ); + assert(pTmp->IsTabFrame()); pNxt = static_cast(pTmp); } while( !pNxtContent && nullptr != ( pTmp = pTmp->GetNext() ) )