incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1172122 - /incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx
Date Sat, 17 Sep 2011 22:41:14 GMT
Author: mst
Date: Sat Sep 17 22:41:14 2011
New Revision: 1172122

URL: http://svn.apache.org/viewvc?rev=1172122&view=rev
Log:
sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely

# HG changeset patch
# User Oliver-Rainer Wittmann <od@openoffice.org>
# Date 1304668513 -7200
# Node ID 051eaf9bfbe38437cd5df71f675e4f075f4855d6
# Parent  a0b88a5ee52f360566d6429d1f5acdd13e05dc27

Modified:
    incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx   (contents, props changed)

Modified: incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx?rev=1172122&r1=1172121&r2=1172122&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx Sat Sep 17 22:41:14 2011
@@ -854,6 +854,19 @@ void SwDoc::ClearDoc()
     // *after* the document nodes are deleted.
     pOutlineRule = NULL;
     pNumRuleTbl->DeleteAndDestroy( 0, pNumRuleTbl->Count() );
+    // --> OD #i114725#,#i115828#
+    {
+        for ( std::hash_map< String, SwList*, StringHash >::iterator
+                                                    aListIter = maLists.begin();
+              aListIter != maLists.end();
+              ++aListIter )
+        {
+            delete (*aListIter).second;
+        }
+        maLists.clear();
+    }
+    maListStyleLists.clear();
+    // <--
     // creation of new outline numbering rule
     // --> OD 2008-02-11 #newlistlevelattrs#
     pOutlineRule = new SwNumRule( String::CreateFromAscii( SwNumRule::GetOutlineRuleName()
),

Propchange: incubator/ooo/trunk/main/sw/source/core/doc/docnew.cxx
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message