diff options
author | Henry Castro <hcastro@collabora.com> | 2017-06-27 14:35:58 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-07-26 18:24:17 +0200 |
commit | ea31fa38bfef778428203d1473cafc31659be1b9 (patch) | |
tree | bc746ba1434c63e7fed065f2e0f6f01048488028 /sd/source/ui/view/viewshe3.cxx | |
parent | 3274eae5ba8bc02ab6f39ee0b3b95880547aa5b5 (diff) |
sd lok: fix Undo/Redo Document Repair
REPAIRPACKAGE is sent to enable Undo/Redo actions when two views
have conflicts.
Change-Id: I58133f5b9006c41a297711c52ed0acfce3c19f92
Reviewed-on: https://gerrit.libreoffice.org/39325
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/39398
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sd/source/ui/view/viewshe3.cxx')
-rw-r--r-- | sd/source/ui/view/viewshe3.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index f769a3bf7da8..6600248086f3 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -129,15 +129,10 @@ void ViewShell::GetMenuState( SfxItemSet &rSet ) if(pUndoManager) { - auto pSdUndoManager = dynamic_cast<sd::UndoManager*>(pUndoManager); - if (pSdUndoManager) - pSdUndoManager->SetViewShell(&GetViewShellBase()); if(pUndoManager->GetUndoActionCount() != 0) { bActivate = true; } - if (pSdUndoManager) - pSdUndoManager->SetViewShell(nullptr); } if(bActivate) @@ -161,15 +156,10 @@ void ViewShell::GetMenuState( SfxItemSet &rSet ) if(pUndoManager) { - auto pSdUndoManager = dynamic_cast<sd::UndoManager*>(pUndoManager); - if (pSdUndoManager) - pSdUndoManager->SetViewShell(&GetViewShellBase()); if(pUndoManager->GetRedoActionCount() != 0) { bActivate = true; } - if (pSdUndoManager) - pSdUndoManager->SetViewShell(nullptr); } if(bActivate) |