summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/virtoutp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/virtoutp.cxx')
-rw-r--r--sw/source/core/layout/virtoutp.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/core/layout/virtoutp.cxx b/sw/source/core/layout/virtoutp.cxx
index f1d909fd2f83..d769f3c4987a 100644
--- a/sw/source/core/layout/virtoutp.cxx
+++ b/sw/source/core/layout/virtoutp.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -39,7 +40,7 @@
// OD 12.11.2002 #96272# - include declaration for <SetMappingForVirtDev>
#include "setmapvirtdev.hxx"
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
/*************************************************************************
* class DbgRect
@@ -183,7 +184,7 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn )
{
Flush();
-#ifdef DBG_UTIL
+#if OSL_DEBUG_LEVEL > 1
if( pShell->GetViewOptions()->IsTest3() )
{
++nCount;
@@ -209,7 +210,7 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn )
aTmp.SSize().Height()+= aPixSz.Height()/2 + 1;
Rectangle aTmpRect( pO->LogicToPixel( aTmp.SVRect() ) );
- ASSERT( !pSh->GetWin()->IsReallyVisible() ||
+ OSL_ENSURE( !pSh->GetWin()->IsReallyVisible() ||
aTmpRect.GetWidth() <= pSh->GetWin()->GetOutputSizePixel().Width() + 2,
"Paintwidth bigger than visarea?" );
// Passt das Rechteck in unseren Buffer ?
@@ -245,7 +246,7 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn )
void SwLayVout::_Flush()
{
- ASSERT( pVirDev, "SwLayVout::DrawOut: nothing left Toulouse" );
+ OSL_ENSURE( pVirDev, "SwLayVout::DrawOut: nothing left Toulouse" );
Rectangle aTmp( aRect.SVRect() );
pOut->DrawOutDev( aRect.Pos(), aRect.SSize(),
aRect.Pos(), aRect.SSize(), *pVirDev );
@@ -254,3 +255,4 @@ void SwLayVout::_Flush()
}
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */