diff options
author | Mike Kaganski <mikekaganski@hotmail.com> | 2015-06-05 00:10:24 +1000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-06-12 14:59:19 +0200 |
commit | d6f458ce508259a31e1ed700efca074a97e2b3f2 (patch) | |
tree | 512c2b766726d19adaacc34529c4e7565540f825 /sc | |
parent | 0011e6b9b3b0471b95dd181f45ac33c6cfb1046b (diff) |
tdf#90996: don't overwrite comments in ScTable::FillFormulaVertical
IDF_CONTENTS includes IDF_NOTE, which should not be used here
Change-Id: I904fbdbfcb97865a5682d9073e0ce2d5a2c694fb
Reviewed-on: https://gerrit.libreoffice.org/16085
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit a977937927729eaff61bd670fdd45d3508b19371)
Reviewed-on: https://gerrit.libreoffice.org/16091
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx index 5ceb75850035..bac911e12bdc 100644 --- a/sc/source/core/data/table4.cxx +++ b/sc/source/core/data/table4.cxx @@ -1170,7 +1170,7 @@ void ScTable::FillFormulaVertical( if (aSpans.empty()) return; - aCol[nCol].DeleteRanges(aSpans, IDF_CONTENTS, false); + aCol[nCol].DeleteRanges(aSpans, IDF_VALUE | IDF_DATETIME | IDF_STRING | IDF_FORMULA | IDF_OUTLINE, false); aCol[nCol].CloneFormulaCell(rSrcCell, sc::CellTextAttr(), aSpans, NULL); boost::shared_ptr<sc::ColumnBlockPositionSet> pSet(new sc::ColumnBlockPositionSet(*pDocument)); |