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

Markus Mohrhard markus.mohrhard at googlemail.com
Mon May 27 17:23:26 PDT 2013


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

New commits:
commit 86079e8823119599fb81ec6cfd1225d4b37cc525
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue May 28 02:15:52 2013 +0200

    correctly delete note captions, fdo#64068
    
    This fixes fdo#64068 and correctly without reintroducing the crash with
    Undo/Redo.
    
    Change-Id: I9ad48f6dbb7f1587985f8da9eba3886dfd4068de

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 0f5d458..5df2ac1 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -578,7 +578,9 @@ void ScTable::DeleteSelection( sal_uInt16 nDelFlag, const ScMarkData& rMark )
     {
         ScRange* pRange = aRangeList[i];
         if (nDelFlag & IDF_NOTE && pRange)
-            maNotes.erase(pRange->aStart.Col(), pRange->aStart.Row(), pRange->aEnd.Col(), pRange->aEnd.Row(), true);
+        {
+            maNotes.erase(pRange->aStart.Col(), pRange->aStart.Row(), pRange->aEnd.Col(), pRange->aEnd.Row(), nDelFlag & IDF_NOCAPTIONS);
+        }
 
         if((nDelFlag & IDF_ATTRIB) && pRange && pRange->aStart.Tab() == nTab)
             mpCondFormatList->DeleteArea( pRange->aStart.Col(), pRange->aStart.Row(), pRange->aEnd.Col(), pRange->aEnd.Row() );


More information about the Libreoffice-commits mailing list