summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwppara1.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-12-25 10:44:54 +0100
committerDavid Tardon <dtardon@redhat.com>2010-12-25 10:44:54 +0100
commit312cf359028bb68f0e8bf3f7da57ced4781be399 (patch)
treef5866e6aafd15e726d062d5cf006dcb6a5e89463 /lotuswordpro/source/filter/lwppara1.cxx
parentfix warning in binfilter bf_sc ui/app and commented code deletion (diff)
downloadcore-312cf359028bb68f0e8bf3f7da57ced4781be399.tar.gz
core-312cf359028bb68f0e8bf3f7da57ced4781be399.zip
fix debugging condition
Diffstat (limited to 'lotuswordpro/source/filter/lwppara1.cxx')
-rw-r--r--lotuswordpro/source/filter/lwppara1.cxx7
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