[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sd/source

Pranav Kant pranavk at collabora.co.uk
Thu Aug 24 01:06:43 UTC 2017


 sd/source/ui/view/drviews2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d51c24bfceb19bc22d37bee08c3c927606abe02e
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Tue Aug 1 16:37:52 2017 +0530

    tdf#110743: Use page position to insert master page, not id
    
    Fallback from c454fbb9b62164d5f047990ae63522c9fb932086
    
    Change-Id: I8835f1a23feeb12d77963e621e8d9d59568420f2
    (cherry picked from commit f4e5940abbbaa3c2747108b0954e8912d164f3e5)
    Reviewed-on: https://gerrit.libreoffice.org/40633
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Jenkins <ci at libreoffice.org>
    (cherry picked from commit c9ff6f8f9c7f94070bef0909636f0ec91d9baaf7)
    Reviewed-on: https://gerrit.libreoffice.org/41430
    Reviewed-by: Aron Budea <aron.budea at collabora.com>
    Tested-by: Aron Budea <aron.budea at collabora.com>

diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 1ceae1cf2f19..694fa4d9767d 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -356,7 +356,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.


More information about the Libreoffice-commits mailing list