copy conditional formats correctly, fdo#63607
Change-Id: I80307944c5a9a873f972e6c349ec4fe48ae848e9
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 5b024fd..5af802f 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
}