[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon May 27 17:24:05 PDT 2013


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

New commits:
commit 34af6ec157eb82af02bf14387167beb2c4ae48ec
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