summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-25 16:11:43 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-25 17:25:05 +0200
commit21da9b11df716a21a552e7b32357af49b728b233 (patch)
tree3d5250a8df2ef0b38ba2cebcc04809bcbb10d692 /sc
parent489a274c3c161ed8f65d04e44a73170bfa84aab9 (diff)
fdo#66646: fix paste special with empty cells
Change-Id: I5323645f3b045574f3d02a895fbe309b52b2ca3d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column3.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index ce2d81feaccd..5a6f1ec0ca2b 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -1191,9 +1191,25 @@ public:
switch (aPos.first->type)
{
case sc::element_type_numeric:
+ {
+ double fVal = sc::numeric_block::at(*aPos.first->data, aPos.second);
+ miNewCellsPos = maNewCells.set(
+ miNewCellsPos, nDestRow-mnRowOffset, fVal);
+ }
+ break;
case sc::element_type_string:
+ {
+ OUString aVal = sc::string_block::at(*aPos.first->data, aPos.second);
+ miNewCellsPos = maNewCells.set(
+ miNewCellsPos, nDestRow-mnRowOffset, aVal);
+ }
+ break;
case sc::element_type_edittext:
- // Dont' do anything.
+ {
+ EditTextObject* pObj = sc::edittext_block::at(*aPos.first->data, aPos.second);
+ miNewCellsPos = maNewCells.set(
+ miNewCellsPos, nDestRow-mnRowOffset, pObj);
+ }
break;
case sc::element_type_formula:
{