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

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Feb 25 23:30:06 PST 2013


 sc/source/core/data/table2.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 5b14af735a87ef5b38909f443465c123591c74fa
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Feb 19 18:57:18 2013 +0100

    automatically extending cond formats is dangerous, fdo#60828
    
    Change-Id: I45549e163f21550e879a171d80e836b6df3dd2cc
    Reviewed-on: https://gerrit.libreoffice.org/2410
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 9631116..1127f52 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -389,9 +389,10 @@ void ScTable::InsertCol( SCCOL nStartCol, SCROW nStartRow, SCROW nEndRow, SCSIZE
 
     if (nStartCol>0)                        // copy old attributes
     {
-        sal_uInt16 nWhichArray[2];
+        sal_uInt16 nWhichArray[3];
         nWhichArray[0] = ATTR_MERGE;
-        nWhichArray[1] = 0;
+        nWhichArray[1] = ATTR_CONDITIONAL;
+        nWhichArray[2] = 0;
 
         for (SCSIZE i=0; i<nSize; i++)
         {


More information about the Libreoffice-commits mailing list