diff options
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/view/ToolBarManager.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx index 2d1add3a91ab..4fe12fac0026 100644 --- a/sd/source/ui/view/ToolBarManager.cxx +++ b/sd/source/ui/view/ToolBarManager.cxx @@ -1067,7 +1067,7 @@ void ToolBarRules::MainViewShellChanged (const ViewShell& rMainViewShell) mpToolBarManager->AddToolBar( ToolBarManager::TBG_MASTER_MODE, ToolBarManager::msMasterViewToolBar); - else + else if ( rMainViewShell.GetShellType() != ::sd::ViewShell::ST_DRAW ) mpToolBarManager->AddToolBar( ToolBarManager::TBG_COMMON_TASK, ToolBarManager::msCommonTaskToolBar); diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 8b605b02f51c..28fd92c80565 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -365,7 +365,8 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) bool bShowMasterViewToolbar (meEditMode == EM_MASTERPAGE && GetShellType() != ViewShell::ST_HANDOUT); bool bShowPresentationToolbar (meEditMode != EM_MASTERPAGE - && GetShellType() != ViewShell::ST_HANDOUT); + && GetShellType() != ViewShell::ST_HANDOUT + && GetShellType() != ViewShell::ST_DRAW); // If the master view toolbar is not shown we hide it before // switching the edit mode. |