summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r--sw/source/core/layout/sectfrm.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index 6f568f4dca15..3dc0288d101b 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -764,7 +764,7 @@ void SwSectionFrm::MakeAll()
return;
if( !pSection ) // Durch DelEmpty
{
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DBG_UTIL
OSL_ENSURE( getRootFrm()->IsInDelList( this ), "SectionFrm without Section" );
#endif
if( !bValidPos )
@@ -1304,7 +1304,7 @@ void SwSectionFrm::Format( const SwBorderAttrs *pAttr )
{
if( !pSection ) // Durch DelEmpty
{
-#if OSL_DEBUG_LEVEL > 1
+#ifdef DBG_UTIL
OSL_ENSURE( getRootFrm()->IsInDelList( this ), "SectionFrm without Section" );
#endif
bValidSize = bValidPos = bValidPrtArea = sal_True;
@@ -2749,14 +2749,12 @@ void SwRootFrm::_RemoveFromList( SwSectionFrm* pSct )
pDestroy->Remove( nPos );
}
-#if OSL_DEBUG_LEVEL > 1
-
-sal_Bool SwRootFrm::IsInDelList( SwSectionFrm* pSct ) const
+#ifdef DBG_UTIL
+bool SwRootFrm::IsInDelList( SwSectionFrm* pSct ) const
{
sal_uInt16 nPos;
return ( pDestroy && pDestroy->Seek_Entry( pSct, &nPos ) );
}
-
#endif
bool SwSectionFrm::IsBalancedSection() const