sc/source/core/data/column3.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
New commits: commit 21da9b11df716a21a552e7b32357af49b728b233 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Wed Sep 25 16:11:43 2013 +0200 fdo#66646: fix paste special with empty cells Change-Id: I5323645f3b045574f3d02a895fbe309b52b2ca3d diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index ce2d81f..5a6f1ec 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: { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits