summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 00:45:32 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 00:48:33 +0200
commitd4e2a95a2f7376c36c1241f91a55021fc856c758 (patch)
treeab1c22d835fd48d3a2ac1f2de647e05fe02a9718
parentadc4c53082c2fa1634897bd279afd6b5ba2e16da (diff)
if no new cell exists, create hidden broadcaster cell, fdo#51368
Change-Id: I61b96a0e164269ef85778cba7865d6488ebac79d
-rw-r--r--sc/source/core/data/column3.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 401f5ecc7db0..23dd104d81db 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -1395,6 +1395,9 @@ bool ScColumn::SetString( SCROW nRow, SCTAB nTabP, const String& rString,
SvtBroadcaster* pBC = pOldCell->ReleaseBroadcaster();
if (pNewCell || pBC)
{
+ if(!pNewCell)
+ pNewCell = new ScNoteCell();
+
if (pBC)
{
pNewCell->TakeBroadcaster(pBC);