[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Wed Jun 8 15:18:59 PDT 2011


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

New commits:
commit 34d52ccf69b15b5889a81422ea390b08914858c7
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Jun 8 20:28:18 2011 +0000

    fdo#37816: Fix a crasher in datapilot table when moving a field button.
    
    Signed-off-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 23219e5..593fc25 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -967,7 +967,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