From 5b33bca6cc058fb10ad0eccb229e97cb7faef4a5 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 11 Apr 2013 11:31:40 +0200 Subject: i#52127: Avoid .back() on an empty vector, fixes ooo52127-1.odt. Change-Id: I3463b727e024260c13a01c017cfd96109a793cb1 --- xmloff/source/text/txtlists.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source') 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, -- cgit