From 3fa50ac35b6a56ae9628b0310cbf0eb7b4634736 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 19 Sep 2012 18:24:59 +0200 Subject: use correct cell for broadcasting, fdo#55059 Change-Id: I353df8e9d3ccabee32b82d04cdae402e3a83ed23 --- sc/source/core/data/column3.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 00ac9fa065b8..c853c16ee78c 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -425,7 +425,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) { -- cgit v1.2.3