summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index e73bdee1841f..cb64d10411b1 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -991,9 +991,25 @@ int ViewShellBase::getEditMode() const
switch ( pDrawViewShell->GetEditMode() )
{
case EditMode::Page:
- return 0;
+ switch (pDrawViewShell->GetPageKind())
+ {
+ case PageKind::Standard:
+ return 0;
+ case PageKind::Notes:
+ return 2;
+ default:
+ assert(!"Unhandled page kind");
+ return 0;
+ }
case EditMode::MasterPage:
- return 1;
+ switch (pDrawViewShell->GetPageKind())
+ {
+ case PageKind::Standard:
+ return 1;
+ default:
+ assert(!"Unhandled page kind");
+ return 1;
+ }
}
}