diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-26 17:44:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-27 08:55:56 +0100 |
commit | 7af733d9ef65fddd12ef5fae82808ba2f7f608df (patch) | |
tree | 360afc7f8c5b7963730885255f631c9896f683b4 /xmloff | |
parent | DBG_ASSERT->assert (diff) | |
download | core-7af733d9ef65fddd12ef5fae82808ba2f7f608df.tar.gz core-7af733d9ef65fddd12ef5fae82808ba2f7f608df.zip |
tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index f02a6951092e..4475819a2acb 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -794,7 +794,6 @@ OUString XMLTextParagraphExport::FindTextStyleAndHyperlink( } OUString sParent; // AutoStyles should not have parents! sName = GetAutoStylePool().Find( XML_STYLE_FAMILY_TEXT_TEXT, sParent, xPropStates ); - // assert(!sName.isEmpty()); // AutoStyle could not be found rbHasAutoStyle = true; } @@ -1068,7 +1067,7 @@ void XMLTextParagraphExport::exportListChange( rPrevInfo.BelongsToSameList( rNextInfo ) && rPrevInfo.GetLevel() >= rNextInfo.GetLevel() ) { - assert(pListElements && pListElements->size() >= 2); //list elements missing + assert(pListElements && pListElements->size() >= 2 && "list elements missing"); bEndElement = pListElements && pListElements->size() >= 2; } |