summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-16 04:06:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-16 04:09:36 +0200
commit78e35a68b23830debc574431c18f1b7637a513c8 (patch)
treeb73b8a5433b5ebe2f8f9af179d6ff417a5eac10f /sc
parent7389140c1a7a2f5b370f0a54f460c70b6fa55261 (diff)
only delete cond formats when attributes are deleted, fdo#54748
Change-Id: I41829e8464fb2fb5e7bbc435f9aa5ed72e7d5cbc
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx3
1 files changed, 2 insertions, 1 deletions
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)