summaryrefslogtreecommitdiff
path: root/sw/source/core/text/txtio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/txtio.cxx')
-rw-r--r--sw/source/core/text/txtio.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/text/txtio.cxx b/sw/source/core/text/txtio.cxx
index d508199e0234..eaeefba1cb3b 100644
--- a/sw/source/core/text/txtio.cxx
+++ b/sw/source/core/text/txtio.cxx
@@ -287,9 +287,14 @@ SvStream &operator<<( SvStream &rOs, const SwpHints & ) //$ ostream
sal_Bool IsDbg( const SwTxtFrm *pFrm )
{
+// Hmm, so IsTest4 etc are defined only if OSL_DEBUG_LEVEL > 1,
+// but this file is compiled if DBG_UTIL is defined. So should the IsTest4 etc
+// then instead be conditional on DBG_UTIL? Such crack.
+#if OSL_DEBUG_LEVEL > 1
if( pFrm && pFrm->GetShell() )
return pFrm->GetShell()->GetViewOptions()->IsTest4();
else
+#else
return sal_False;
}