summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-19 18:24:59 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-21 15:10:09 +0200
commit7615e7ea047291f9c65ee32f4aaf615e2efbff21 (patch)
tree2ae286dc25b285600829778fe135a1a0eceb34a6
parent774d204051a898cd399bca12d4d52d784c61dc5f (diff)
use correct cell for broadcasting, fdo#55059
Change-Id: I353df8e9d3ccabee32b82d04cdae402e3a83ed23 Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com> Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-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)
{