diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-29 20:51:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-01 09:24:03 +0000 |
commit | e6b9f1c7364bca5a63d4185b7c4ff10e8feecd2c (patch) | |
tree | aa39aba51b8f3bbb135f92a97ab3066d5f59f0c5 | |
parent | 21de464632e653562f7a24f2a7285479fcfb0c7a (diff) |
we need to copy the condition format cell for cell, fdo#86253
Change-Id: Ic090e1b9d13780e7e895a85901d3329cc5703688
Reviewed-on: https://gerrit.libreoffice.org/13197
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/core/data/document10.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index baf731412c54..d74343e7276f 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -205,8 +205,11 @@ bool ScDocument::CopyOneCellFromClip( { maTabs[i]->CopyOneCellFromClip(rCxt, nCol1, nRow1, nCol2, nRow2); if (rCxt.getInsertFlag() & IDF_ATTRIB) - maTabs[i]->CopyConditionalFormat(nCol1, nRow1, nCol2, nRow2, nCol1 - aClipRange.aStart.Col(), - nRow1 - aClipRange.aStart.Row(), pSrcTab); + for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow) + { + maTabs[i]->CopyConditionalFormat(nCol1, nRow, nCol2, nRow, nCol1 - aClipRange.aStart.Col(), + nRow - aClipRange.aStart.Row(), pSrcTab); + } } return true; |