[Libreoffice-commits] core.git: xmloff/source

Jan Holesovsky kendy at suse.cz
Thu Apr 11 02:36:54 PDT 2013


 xmloff/source/text/txtlists.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5b33bca6cc058fb10ad0eccb229e97cb7faef4a5
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Thu Apr 11 11:31:40 2013 +0200

    i#52127: Avoid .back() on an empty vector, fixes ooo52127-1.odt.
    
    Change-Id: I3463b727e024260c13a01c017cfd96109a793cb1

diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx
index cdbb3c5..bba2e71 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,


More information about the Libreoffice-commits mailing list