summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/dbfunc3.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2010-02-08 12:13:44 +0100
committerNiklas Nebel <nn@openoffice.org>2010-02-08 12:13:44 +0100
commitda4c55557ffad9cf733399b6e8eb8030f3e97839 (patch)
tree127861f96e2eb46b7369bf95e1b0e3435a323ca9 /sc/source/ui/view/dbfunc3.cxx
parent27ba0334e70f637b52a416ca67e9f0a68c68b81b (diff)
datapilotperf: don't clear undo history in RecalcPivotTable
Diffstat (limited to 'sc/source/ui/view/dbfunc3.cxx')
-rw-r--r--sc/source/ui/view/dbfunc3.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index b9cef29c7b04..15a012d7b59f 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -746,7 +746,9 @@ ULONG ScDBFunc::RecalcPivotTable()
ULONG nErrId = RefreshDPObject( pDPObj, pDoc, pDocSh, TRUE, FALSE );//pDPObj->RefreshCache();
if ( nErrId == 0 )
{
- GetViewData()->GetDocShell()->GetUndoManager()->Clear();
+ // There is no undo for the refresh of the cache table, but the undo history for cell changes
+ // remains valid and should be preserved, so the history isn't cleared here.
+ //GetViewData()->GetDocShell()->GetUndoManager()->Clear();
}
else
ErrorMessage(nErrId);