summaryrefslogtreecommitdiff
path: root/lotuswordpro
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
parent1740a4a3749f33b8622c3aa671199a2c8ae06e80 (diff)
fix debugging condition
Diffstat (limited to 'lotuswordpro')
-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