summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-04 19:04:13 +0100
committerPetr Mladek <pmladek@suse.cz>2012-11-07 10:57:20 +0100
commit0e8e9408fad0d56212c71acaba7f6c1816d0ee54 (patch)
treef19296d74ef8b468d360b36f01b22a017fd5e34b /sc/source/core/data
parentafb700e011042f73e91df163c57ebff2847ae4cd (diff)
only delete cond formats if the correct attributes are passed, fdo#56316
Change-Id: If9859b5021c532daacccfaf386e0489c134e4afb Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc/source/core/data')
-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 e8df882e2af1..bc97e9c7ba4d 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -561,7 +561,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)