Kaydet (Commit) 3a9917b6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

tdf#100393, handle copying one cell to multiple cols with cond format

The same fix has been applied for rows already.

Change-Id: I77300680a657fb874d07641fbae928eb6c210acd
üst c708c935
...@@ -126,8 +126,11 @@ bool ScDocument::CopyOneCellFromClip( ...@@ -126,8 +126,11 @@ bool ScDocument::CopyOneCellFromClip(
if (rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB) if (rCxt.getInsertFlag() & InsertDeleteFlags::ATTRIB)
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow) for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow)
{ {
maTabs[i]->CopyConditionalFormat(nCol1, nRow, nCol2, nRow, nCol1 - aClipRange.aStart.Col(), for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol)
nRow - aClipRange.aStart.Row(), pSrcTab); {
maTabs[i]->CopyConditionalFormat(nCol, nRow, nCol, nRow, nCol - aClipRange.aStart.Col(),
nRow - aClipRange.aStart.Row(), pSrcTab);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment