summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-19 18:24:59 +0200
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-09-19 13:21:11 -0400
commit44946ef77dd14d139fc799a25c4e2b26c772ce9f (patch)
treec94fb478a9068c98a8591ad763733af29508946d
parent538760dc0c9baaf0e15abefe4aae32448ba61592 (diff)
use correct cell for broadcasting, fdo#55059
Change-Id: I353df8e9d3ccabee32b82d04cdae402e3a83ed23 Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
-rw-r--r--sc/source/core/data/column3.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 6495ca6598e1..48d77dc6f5fc 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -427,7 +427,10 @@ void ScColumn::DeleteRange( SCSIZE nStartIndex, SCSIZE nEndIndex, sal_uInt16 nDe
else
{
aHint.GetAddress().SetRow( nOldRow );
- aHint.SetCell( pOldCell );
+ if(bKeepBC)
+ aHint.SetCell( pNoteCell );
+ else
+ aHint.SetCell( pOldCell );
pDocument->Broadcast( aHint );
if (pNoteCell != pOldCell)
{