diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-02-22 22:43:35 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-02-23 11:33:17 +0100 |
commit | c557889748292d25996ea8f587d7564c74e6f121 (patch) | |
tree | 0a2ec9ee6022d20fac87cb87965e0eb4780a2951 /sc | |
parent | 2d5a9e9f26daf95f33afb0d28ffd088cdd41ae8c (diff) |
copy multiple single row cond formats correctly, tdf#115835
Change-Id: Ic20cc27f03edf3dbd27975f99c788bf5bffd4c48
Reviewed-on: https://gerrit.libreoffice.org/50211
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table7.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table7.cxx b/sc/source/core/data/table7.cxx index 1c6e16cf36fb..54a84e31e20f 100644 --- a/sc/source/core/data/table7.cxx +++ b/sc/source/core/data/table7.cxx @@ -130,10 +130,10 @@ void ScTable::CopyOneCellFromClip( assert(nColOffset >= 0); aCol[nCol].CopyOneCellFromClip(rCxt, nRow1, nRow2, nColOffset); - if ((rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB) && (nColOffset == 0)) + if (rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB) { for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow) - CopyConditionalFormat(nCol, nRow, nCol + nSrcColSize - 1, nRow, nCol - aSrcRange.aStart.Col(), + CopyConditionalFormat(nCol, nRow, nCol, nRow, nCol - aSrcRange.aStart.Col() - nColOffset, nRow - nSrcRow, pSrcTab); } } |