summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-17 03:05:16 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-04-22 10:53:27 +0200
commit0216d0e1ff84ae8ebab3d40bf69bae605264e82b (patch)
tree00f4c5175e2f103bbd6f9d271200e10b48a2de80
parent6d18625207aa6c9a1861a0bc1e266f0c931fdd79 (diff)
copy conditional formats correctly, fdo#63607
Change-Id: I80307944c5a9a873f972e6c349ec4fe48ae848e9
-rw-r--r--sc/source/core/data/table2.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 5b024fd53ea8..5af802fa3b35 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -1128,6 +1128,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
if (bFlagChange)
pDestTab->InvalidatePageBreaks();
+ if(nFlags & IDF_ATTRIB)
+ {
+ pDestTab->mpCondFormatList->DeleteArea(nCol1, nRow1, nCol2, nRow2);
+ pDestTab->CopyConditionalFormat(nCol1, nRow1, nCol2, nRow2, 0, 0, this);
+ }
+
pDestTab->SetOutlineTable( pOutlineTable ); // auch nur wenn bColRowFlags
}