[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - sc/source
Dennis Francis
dennis.francis at collabora.co.uk
Wed Jun 20 10:40:21 UTC 2018
sc/source/core/data/column.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6cb04c2c6ca284bc18f25403252231580190aa3b
Author: Dennis Francis <dennis.francis at collabora.co.uk>
Date: Mon Jun 18 08:14:24 2018 +0530
tdf#118189 : Propagate the state of mbNeedsNumberFormat...
from source formula-cell to destination while calling
SetFormulaCell() on dest formula-cell in CopyByCloneHandler
CopyByCloneHandler get called when some data range is pasted
to a document, or when data is copied to an undo document.
This is a follow-up of the commit
37f6e5de1e72d209b0892734f4de5c4d8a849885
(tdf#114710 : Fixes crash when pasting as GDI metafile)
Change-Id: I936310f13080f2de763ebcd5cb046a25d61d978e
Reviewed-on: https://gerrit.libreoffice.org/55975
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>
(cherry picked from commit 67c88e284af74c88e37cc8f66cdfc0e346de45ac)
Reviewed-on: https://gerrit.libreoffice.org/56133
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index d7c25de498de..d8f164e0c916 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1433,7 +1433,7 @@ class CopyByCloneHandler
// Clone as formula cell.
ScFormulaCell* pCell = new ScFormulaCell(rSrcCell, *mrDestCol.GetDoc(), aDestPos, mnFormulaCellCloneFlags);
pCell->SetDirtyVar();
- mrDestCol.SetFormulaCell(maDestPos, nRow, pCell, meListenType);
+ mrDestCol.SetFormulaCell(maDestPos, nRow, pCell, meListenType, rSrcCell.NeedsNumberFormat());
setDefaultAttrToDest(nRow);
return;
}
More information about the Libreoffice-commits
mailing list