Kaydet (Commit) f67e3d18 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Andras Timar

copy multiple single row cond formats correctly, tdf#115835

Change-Id: Ic20cc27f03edf3dbd27975f99c788bf5bffd4c48
Reviewed-on: https://gerrit.libreoffice.org/50211Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit c5578897)
Reviewed-on: https://gerrit.libreoffice.org/50292Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
(cherry picked from commit 15443038)
üst 83123c66
...@@ -130,10 +130,10 @@ void ScTable::CopyOneCellFromClip( ...@@ -130,10 +130,10 @@ void ScTable::CopyOneCellFromClip(
assert(nColOffset >= 0); assert(nColOffset >= 0);
aCol[nCol].CopyOneCellFromClip(rCxt, nRow1, nRow2, nColOffset); 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) 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); nRow - nSrcRow, 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