summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undosort.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-02 17:51:58 +0200
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-09-03 21:10:10 +0200
commit8c18ffbf9bb250fd49c5fc7ae89cc74155c768c6 (patch)
treed03d7934e640d51a590ccc7edfbb61532d150a61 /sc/source/ui/undo/undosort.cxx
parentd59e728be6d71cfb86c5f2904df793e9dd2d1af5 (diff)
fdo#81633: Add a new configuration option to toggle ref update on sort.
The new option is in Calc -> General and is labeled "Update references when sorting range of cells" Change-Id: I5ac686e96742df40f7d8ba5ffec23806db2988a6
Diffstat (limited to 'sc/source/ui/undo/undosort.cxx')
-rw-r--r--sc/source/ui/undo/undosort.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undosort.cxx b/sc/source/ui/undo/undosort.cxx
index d138491c3abb..fbd10ae45f4a 100644
--- a/sc/source/ui/undo/undosort.cxx
+++ b/sc/source/ui/undo/undosort.cxx
@@ -48,6 +48,8 @@ void UndoSort::Execute( bool bUndo )
pDocShell->PostPaint(maParam.maSortRange, PAINT_GRID);
pDocShell->PostDataChanged();
+ if (!aParam.mbUpdateRefs)
+ rDoc.BroadcastCells(aParam.maSortRange, SC_HINT_DATACHANGED);
}
}