From d4bdac90c3b12d1de74b99786f2e830ee2ae18dc Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 16 Mar 2017 21:46:57 +0100 Subject: CopyOneCellFromClip also copies one row ranges, tdf#106242 Change-Id: I1750d411766ba2b4128fc1c00769a8b2e56e7547 Reviewed-on: https://gerrit.libreoffice.org/35294 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- sc/source/core/data/table7.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source') 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); } } -- cgit