diff options
author | Michael Stahl <mst@openoffice.org> | 2012-07-27 17:30:49 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-27 17:50:22 +0200 |
commit | f6f265313f055f3d767060509cbf05442c1bb548 (patch) | |
tree | 0985b94faf3e8f31c92ab43f10490f1c2af1fe07 /editeng | |
parent | 10dc090b31776f21a09e32dd409348e2ddb00cc5 (diff) |
some tweaks in RTF filter
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]; |