summaryrefslogtreecommitdiff
path: root/sc/source/core/data/clipcontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/clipcontext.cxx')
-rw-r--r--sc/source/core/data/clipcontext.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/core/data/clipcontext.cxx b/sc/source/core/data/clipcontext.cxx
index b0ac3019c67c..c355f9bc1e07 100644
--- a/sc/source/core/data/clipcontext.cxx
+++ b/sc/source/core/data/clipcontext.cxx
@@ -210,6 +210,13 @@ void CopyFromClipContext::setSingleCell( const ScAddress& rSrcPos, const ScColum
if (!bNumeric)
// Error code is treated as numeric value. Don't paste it.
rSrcCell.clear();
+ else
+ {
+ // Turn this into a formula cell with just the error code.
+ ScFormulaCell* pErrCell = new ScFormulaCell(mpClipDoc, rSrcPos);
+ pErrCell->SetErrCode(nErr);
+ rSrcCell.set(pErrCell);
+ }
}
else if (rSrcCell.mpFormula->IsValue())
{