summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/viewshe3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/viewshe3.cxx')
-rw-r--r--sd/source/ui/view/viewshe3.cxx10
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)