summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2010-11-07 22:23:30 +0200
committerTor Lillqvist <tml@hemulen.(none)>2010-11-07 22:23:44 +0200
commit5cc4596e430019b3815ab5cb259e18708b143135 (patch)
tree35f7668a2e308f464200fa4131cb0671429e6b64 /sw
parent4dd53a245ed1454f32d3aef86573cb2fba3579c8 (diff)
Fix compilation error caused by DBG_UTIL vs. OSL_DEBUG_LEVEL mixup
Diffstat (limited to 'sw')
-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 34b4adf252..ec7eb6f288 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;
}