diff options
Diffstat (limited to 'sw/source/core/view/vdraw.cxx')
-rw-r--r-- | sw/source/core/view/vdraw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/view/vdraw.cxx b/sw/source/core/view/vdraw.cxx index ee0bdd2371..a1e2d450f0 100644 --- a/sw/source/core/view/vdraw.cxx +++ b/sw/source/core/view/vdraw.cxx @@ -41,7 +41,7 @@ #include <svx/svdoutl.hxx> -#ifdef DBG_UTIL +#if OSL_DEBUG_LEVEL > 1 #include <svx/fmglob.hxx> #endif @@ -127,7 +127,7 @@ void SwViewImp::PaintLayer( const SdrLayerID _nLayerID, if ( (_nLayerID == pIDDMA->GetHellId()) || (_nLayerID == pIDDMA->GetHeavenId()) ) { - ASSERT( _pPageBackgrdColor, + OSL_ENSURE( _pPageBackgrdColor, "incorrect usage of SwViewImp::PaintLayer: pPageBackgrdColor have to be set for painting layer <hell> or <heaven>"); if ( _pPageBackgrdColor ) { @@ -217,7 +217,7 @@ void SwViewImp::NotifySizeChg( const Size &rNewSz ) if ( !bCheckDrawObjs ) return; - ASSERT( pSh->getIDocumentDrawModelAccess()->GetDrawModel(), "NotifySizeChg without DrawModel" ); + OSL_ENSURE( pSh->getIDocumentDrawModelAccess()->GetDrawModel(), "NotifySizeChg without DrawModel" ); SdrPage* pPage = pSh->getIDocumentDrawModelAccess()->GetDrawModel()->GetPage( 0 ); const ULONG nObjs = pPage->GetObjCount(); for( ULONG nObj = 0; nObj < nObjs; ++nObj ) |