summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-11-25 19:02:08 +0100
committerEike Rathke <erack@redhat.com>2014-11-25 19:10:11 +0100
commitfd8cf1f9c666203524a8d6af9c00ff569548f8e3 (patch)
tree8240b9ec2421bf427a6de878f8947f9f8d853729
parent74b5a0e2c4f54f97bbbc53170fa9bfc033261f58 (diff)
fdo#86708 paint after Undo of Sort
Regression of 10fc138307afb4b39baddb0d56eb8e986e5d29ea that exchanged the PostPaint with SetDirty, but the paint is also needed. Change-Id: Ic3e81fa106f405568effaed71ab33b575b4c5c5c (cherry picked from commit 5cec4ea827570a5bb0a368025f3733b841107d07)
-rw-r--r--sc/source/ui/undo/undosort.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/undo/undosort.cxx b/sc/source/ui/undo/undosort.cxx
index ead54d4541cc..a4bd1af1c302 100644
--- a/sc/source/ui/undo/undosort.cxx
+++ b/sc/source/ui/undo/undosort.cxx
@@ -49,6 +49,9 @@ void UndoSort::Execute( bool bUndo )
rDoc.SetDirty(maParam.maSortRange);
if (!aParam.mbUpdateRefs)
rDoc.BroadcastCells(aParam.maSortRange, SC_HINT_DATACHANGED);
+
+ pDocShell->PostPaint(maParam.maSortRange, PAINT_GRID);
+ pDocShell->PostDataChanged();
}
}