diff options
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 15aeca53f41d..e817dcfc4757 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -354,7 +354,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) xMasterPagesSupplier->getMasterPages()); if (xMasterPages.is()) { - sal_uInt16 nIndex = GetCurPageId(); + sal_uInt16 nIndex = GetCurPagePos() + 1; xMasterPages->insertNewByIndex (nIndex); // Create shapes for the default layout. |