summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-08-01 16:37:52 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-08-01 17:43:07 +0530
commitf4e5940abbbaa3c2747108b0954e8912d164f3e5 (patch)
tree725348f9e07a8c4bd533d3520e5012c57e1cb3c7
parent3fd6c24e3cddf41f88ec6a7405f4848209002adb (diff)
tdf#110743: Use page position to insert master page, not id
Fallback from c454fbb9b62164d5f047990ae63522c9fb932086 Change-Id: I8835f1a23feeb12d77963e621e8d9d59568420f2 (cherry picked from commit d4fc7da34f8cdd6f7823236fe57020c9b104bc1a)
-rw-r--r--sd/source/ui/view/drviews2.cxx2
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.