summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/drawsh5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/drawfunc/drawsh5.cxx')
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx
index 3130e39b79f1..70b5db6b5147 100644
--- a/sc/source/ui/drawfunc/drawsh5.cxx
+++ b/sc/source/ui/drawfunc/drawsh5.cxx
@@ -299,8 +299,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
rBindings.Invalidate(SID_OBJECT_HEAVEN);
rBindings.Invalidate(SID_OBJECT_HELL);
// leave draw shell if nothing selected (layer may be locked)
- if ( pView->GetMarkedObjectList().GetMarkCount() == 0 )
- pViewData->GetViewShell()->SetDrawShell( sal_False );
+ pViewData->GetViewShell()->UpdateDrawShell();
break;
case SID_FRAME_TO_TOP:
@@ -370,14 +369,12 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq )
case SID_DELETE:
case SID_DELETE_CONTENTS:
pView->DeleteMarked();
- if (!pTabView->IsDrawSelMode())
- pViewData->GetViewShell()->SetDrawShell( sal_False );
+ pViewData->GetViewShell()->UpdateDrawShell();
break;
case SID_CUT:
pView->DoCut();
- if (!pTabView->IsDrawSelMode())
- pViewData->GetViewShell()->SetDrawShell( sal_False );
+ pViewData->GetViewShell()->UpdateDrawShell();
break;
case SID_COPY: