[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Jun 8 13:29:48 PDT 2011


 sc/source/core/data/dpsave.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 34a1f66c5f69aba2cd6135895563cf569a2531eb
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Jun 8 16:28:18 2011 -0400

    fdo#37816: Fix a crasher in datapilot table when moving a field button.

diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 8bebdcf..df651dd 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -966,7 +966,10 @@ void ScDPSaveData::SetPosition( ScDPSaveDimension* pDim, long nNew )
     {
         if (pDim == &(*it))
         {
-            aDimList.erase(it);
+            // Tell ptr_vector to give up ownership of this element.  Don't
+            // delete this instance as it is re-inserted into the container
+            // later.
+            aDimList.release(it).release();
             break;
         }
     }


More information about the Libreoffice-commits mailing list