summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-16 21:46:57 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-17 02:31:45 +0000
commitd4bdac90c3b12d1de74b99786f2e830ee2ae18dc (patch)
tree84b91200cb3205ef916ff687fa90f9c3ded8cca9 /sc/source
parent01667d040d9280ee2d918a4bc4a5147e870c039c (diff)
CopyOneCellFromClip also copies one row ranges, tdf#106242
Change-Id: I1750d411766ba2b4128fc1c00769a8b2e56e7547 Reviewed-on: https://gerrit.libreoffice.org/35294 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/table7.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table7.cxx b/sc/source/core/data/table7.cxx
index a84942912aa5..72595dae9b77 100644
--- a/sc/source/core/data/table7.cxx
+++ b/sc/source/core/data/table7.cxx
@@ -65,10 +65,10 @@ void ScTable::CopyOneCellFromClip(
assert(nColOffset >= 0);
aCol[nCol].CopyOneCellFromClip(rCxt, nRow1, nRow2, nColOffset);
- if (rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB)
+ if ((rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB) && (nColOffset == 0))
{
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
- CopyConditionalFormat(nCol, nRow, nCol, nRow, nCol - aSrcRange.aStart.Col(),
+ CopyConditionalFormat(nCol, nRow, nCol + nSrcColSize - 1, nRow, nCol - aSrcRange.aStart.Col(),
nRow - nSrcRow, pSrcTab);
}
}