summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-30 13:03:10 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-01-30 13:03:49 -0500
commit862bec45fa81b5583e764abf845c14689b339753 (patch)
tree680b1ea113eea85b101ff42699632af04fa1450b
parent3b2a30ca8cbb46a137bfd0819d3a6b84757bbcee (diff)
This could cause crasher too.
Change-Id: I47d9ad36937bf07cd0b79fa5eec7710ce84ce4a9
-rw-r--r--sc/source/core/data/document10.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index ae190c1cf99b..d36df55ee60b 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -132,8 +132,11 @@ bool ScDocument::CopyOneCellFromClip(
{
svl::SharedString aStr = rSrcCell.mpFormula->GetString();
if (aStr.isEmpty())
+ {
// do not clone empty string
rSrcCell.clear();
+ break;
+ }
// Turn this into a string or edit cell.
if (rSrcCell.mpFormula->IsMultilineResult())