diff options
author | David Tardon <dtardon@redhat.com> | 2010-12-25 10:44:54 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-12-25 10:44:54 +0100 |
commit | 312cf359028bb68f0e8bf3f7da57ced4781be399 (patch) | |
tree | f5866e6aafd15e726d062d5cf006dcb6a5e89463 /lotuswordpro/source/filter/lwppara1.cxx | |
parent | fix warning in binfilter bf_sc ui/app and commented code deletion (diff) | |
download | core-312cf359028bb68f0e8bf3f7da57ced4781be399.tar.gz core-312cf359028bb68f0e8bf3f7da57ced4781be399.zip |
fix debugging condition
Diffstat (limited to 'lotuswordpro/source/filter/lwppara1.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwppara1.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwppara1.cxx b/lotuswordpro/source/filter/lwppara1.cxx index 5be69ec7e0a5..2c287a49265f 100644 --- a/lotuswordpro/source/filter/lwppara1.cxx +++ b/lotuswordpro/source/filter/lwppara1.cxx @@ -105,8 +105,11 @@ #include "lwptable.hxx" #include "lwpcelllayout.hxx" -// for the check in boost::polymorphic_downcast -#if OSL_DEBUG_LEVEL > 0 && !defined(NDEBUG) +// boost::polymorphic_downcast checks and reports (using assert), if the +// cast is incorrect. We want this in debug builds. +#if OSL_DEBUG_LEVEL > 0 +# undef NDEBUG +#elif !defined(NDEBUG) # define NDEBUG 1 #endif |