summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-11 11:31:40 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-11 11:31:40 +0200
commit5b33bca6cc058fb10ad0eccb229e97cb7faef4a5 (patch)
treecd1ca9e1cb569dab88cd41928c27c62f7fb6deca /xmloff
parente1695087a3755a80de6a14490b7e4395742cf161 (diff)
i#52127: Avoid .back() on an empty vector, fixes ooo52127-1.odt.
Change-Id: I3463b727e024260c13a01c017cfd96109a793cb1
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtlists.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx
index cdbb3c59ea87..bba2e717be45 100644
--- a/xmloff/source/text/txtlists.cxx
+++ b/xmloff/source/text/txtlists.cxx
@@ -379,7 +379,7 @@ XMLTextListsHelper::EnsureNumberedParagraph(
OSL_ENSURE(io_rLevel >= 0, "invalid Level");
NumParaList_t & rNPList( mNPLists[i_ListId] );
const OUString none; // default
- if ( rNPList.empty() && (0 != io_rLevel)) {
+ if ( rNPList.empty() ) {
// create default list style for top level
sal_Int16 lev(0);
rNPList.push_back(::std::make_pair(none,