diff options
author | Niklas Nebel <nn@openoffice.org> | 2010-02-08 12:13:44 +0100 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2010-02-08 12:13:44 +0100 |
commit | da4c55557ffad9cf733399b6e8eb8030f3e97839 (patch) | |
tree | 127861f96e2eb46b7369bf95e1b0e3435a323ca9 /sc/source/ui/view/dbfunc3.cxx | |
parent | 27ba0334e70f637b52a416ca67e9f0a68c68b81b (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.cxx | 4 |
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); |