summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.co.uk>2018-06-18 08:14:24 +0530
committerDennis Francis <dennis.francis@collabora.co.uk>2018-06-20 12:40:25 +0200
commit8ea1e4e4a47b0a1b0cf3dfcb0b1e2a32f0db3d88 (patch)
treee11deb940bd59158e64d267649abe3329b0fee84 /sc
parent8ebbf13ecf3fefb7d136b67b53834145105612ef (diff)
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@redhat.com> (cherry picked from commit 67c88e284af74c88e37cc8f66cdfc0e346de45ac) Reviewed-on: https://gerrit.libreoffice.org/56134
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 73afe1a810f8..03dea4fcc50b 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1430,7 +1430,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;
}