summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-12 16:40:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-12 21:23:29 +0100
commit2894fdcfd38357bd50aceb0386ec77471c96eb3c (patch)
treef43c04e09b506943413101606348fa492e63fd93 /editeng
parentac7c1efc2b7b81f45330cf53a370692321600975 (diff)
WaE in dbgutil mode
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 2988942e7b7c..942093afca61 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3817,10 +3817,10 @@ EditPaM ImpEditEngine::GetPaM( ParaPortion* pPortion, Point aDocPos, sal_Bool bS
if ( !pLine ) // may happen only in the range of SA!
{
- #ifdef DBG_UTIL
- const SvxULSpaceItem& rULSpace =(const SvxULSpaceItem&)pPortion->GetNode()->GetContentAttribs().GetItem( EE_PARA_ULSPACE );
- OSL_ENSURE( nY+GetYValue( rULSpace.GetLower() ) >= aDocPos.Y() , "Index in no line, GetPaM ?" );
- #endif
+#if OSL_DEBUG_LEVEL > 0
+ const SvxULSpaceItem& rULSpace =(const SvxULSpaceItem&)pPortion->GetNode()->GetContentAttribs().GetItem( EE_PARA_ULSPACE );
+ OSL_ENSURE( nY+GetYValue( rULSpace.GetLower() ) >= aDocPos.Y() , "Index in no line, GetPaM ?" );
+#endif
aPaM.SetIndex( pPortion->GetNode()->Len() );
return aPaM;
}