summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undosort.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/undo/undosort.cxx')
-rw-r--r--sc/source/ui/undo/undosort.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/undo/undosort.cxx b/sc/source/ui/undo/undosort.cxx
index 36156fe4c97d..4a0070787189 100644
--- a/sc/source/ui/undo/undosort.cxx
+++ b/sc/source/ui/undo/undosort.cxx
@@ -46,8 +46,7 @@ void UndoSort::Execute( bool bUndo )
ScUndoUtil::MarkSimpleBlock(pDocShell, maParam.maSortRange);
- pDocShell->PostPaint(maParam.maSortRange, PAINT_GRID);
- pDocShell->PostDataChanged();
+ rDoc.SetDirty(maParam.maSortRange);
if (!aParam.mbUpdateRefs)
rDoc.BroadcastCells(aParam.maSortRange, SC_HINT_DATACHANGED);
}