From 78e35a68b23830debc574431c18f1b7637a513c8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 16 Sep 2012 04:06:37 +0200 Subject: only delete cond formats when attributes are deleted, fdo#54748 Change-Id: I41829e8464fb2fb5e7bbc435f9aa5ed72e7d5cbc --- sc/source/core/data/table2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 48cff65944d1..eb22ac694d6f 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -534,7 +534,8 @@ void ScTable::DeleteArea(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, sal ApplyPatternArea( nCol1, nRow1, nCol2, nRow2, aPattern ); } - mpCondFormatList->DeleteArea( nCol1, nRow1, nCol2, nRow2 ); + if( nDelFlag & IDF_ATTRIB ) + mpCondFormatList->DeleteArea( nCol1, nRow1, nCol2, nRow2 ); } if (nDelFlag & IDF_NOTE) -- cgit v1.2.1