diff options
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 48e3efb28f23..2f727e3dddd5 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -28,6 +28,7 @@ #include <ctype.h> +#include <tools/diagnose_ex.h> #include <rtl/tencinfo.h> #include <svl/itemiter.hxx> #include <svl/whiter.hxx> @@ -1252,7 +1253,8 @@ bool SvxRTFParser::UncompressableStackEntry(const SvxRTFItemStackType &) const void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser ) { - DBG_ASSERT( pChildList, "There is no child list" ); + ENSURE_OR_RETURN_VOID(pChildList, "Compress: no ChildList" ); + ENSURE_OR_RETURN_VOID(!pChildList->empty(), "Compress: ChildList empty"); sal_uInt16 n; SvxRTFItemStackType* pTmp = &(*pChildList)[0]; |