[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Sep 19 15:21:17 UTC 2016
sc/source/core/data/document10.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 3a9917b66d6820ec9f2844f8292a46d8b0b9180b
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Sep 19 17:18:21 2016 +0200
tdf#100393, handle copying one cell to multiple cols with cond format
The same fix has been applied for rows already.
Change-Id: I77300680a657fb874d07641fbae928eb6c210acd
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index be9c855..0bad66d 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -126,8 +126,11 @@ bool ScDocument::CopyOneCellFromClip(
if (rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB)
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
{
- maTabs[i]->CopyConditionalFormat(nCol1, nRow, nCol2, nRow, nCol1 - aClipRange.aStart.Col(),
- nRow - aClipRange.aStart.Row(), pSrcTab);
+ for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol)
+ {
+ maTabs[i]->CopyConditionalFormat(nCol, nRow, nCol, nRow, nCol - aClipRange.aStart.Col(),
+ nRow - aClipRange.aStart.Row(), pSrcTab);
+ }
}
}
More information about the Libreoffice-commits
mailing list