summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-11 17:31:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-12 08:07:47 +0100
commit972d71dafda82f227149cb2e4fc6eb3a84886d89 (patch)
tree55d4127d49236bb028e98b108a8a1dd74d3d02d7 /sw
parent151f3d665581d887cda1e36b817afb124c5c789e (diff)
At least assert here
...or is that assumption incorrect and GetOldPageDesc should rather return a pointer that may be null? Change-Id: I256b9085d5143c3cf2f8d3146d109c3c99edffc2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index e46a2cc5f4e5..cdec84e6798f 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -75,6 +75,7 @@
#include "ccoll.hxx"
#include "unocore.hrc"
+#include <cassert>
#include <set>
#define STYLE_FAMILY_COUNT 5 // we have 5 style families
@@ -1638,6 +1639,7 @@ const SwPageDesc& SwStyleBase_Impl::GetOldPageDesc()
}
}
}
+ assert(pOldPageDesc != 0);
return *pOldPageDesc;
}