summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-10-31 15:28:58 +0100
committerKohei Yoshida <libreoffice@kohei.us>2013-10-31 19:03:26 -0500
commite271ea0dceca3f8ac664246ef2f9d65b2fa360a8 (patch)
tree2966c35b132e1d4176ca8e21530fb9781e05f7fb /sc
parent4a7096b9c8c0e6451fa0ced06143cb8a65ec10fc (diff)
resolved fdo#70815 broadcast emptied cell in ScColumn::SwapRow()
Change-Id: Ie939f12a54d0b4cf8bedc34683e20fb924f1bf3b Reviewed-on: https://gerrit.libreoffice.org/6516 Tested-by: Kohei Yoshida <libreoffice@kohei.us> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 800c200d3d44..305eeb50caaa 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -901,6 +901,12 @@ void ScColumn::SwapRow(SCROW nRow1, SCROW nRow2)
// insert ColEntry at new position.
Insert( nRow2, pCell1 );
+
+ // A broadcaster that exists at cell 1 will have no effect in a
+ // subsequent SetDirty(ScRange) that broadcasts only existing cells
+ // so broadcast the change here. fdo#70815
+ // Delete(SCROW) does broadcast for other cases below.
+ pDocument->Broadcast( ScHint( SC_HINT_DATACHANGED, ScAddress( nCol, nRow1, nTab)));
}
return;