sd/sdi/sdraw.sdi               |    2 +-
 sd/source/ui/view/viewshe3.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 072ffc3d85cdabd23f9f1ef9590874dac151107f
Author:     Gülşah Köse <[email protected]>
AuthorDate: Tue Aug 20 15:11:00 2024 +0300
Commit:     Szymon Kłos <[email protected]>
CommitDate: Wed Aug 28 14:15:31 2024 +0200

    ONLINE: Insert slide to specific position
    
    Online was appending new slides at the end.
    With this change we can handle position argument.
    
    Signed-off-by: Gülşah Köse <[email protected]>
    Change-Id: I8d5ff041b7dc4c4bbe6bcfe43d842f8ca87ae2e6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172113
    (cherry picked from commit c00c95aa73144f005a287cb53b4e98db0219c305)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172194
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Szymon Kłos <[email protected]>

diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi
index 06468a74dcda..51028e32a8d6 100644
--- a/sd/sdi/sdraw.sdi
+++ b/sd/sdi/sdraw.sdi
@@ -2196,7 +2196,7 @@ SfxVoidItem InsertLayer SID_INSERTLAYER
 ]
 
 SfxVoidItem InsertPage SID_INSERTPAGE
-(SfxStringItem PageName ID_VAL_PAGENAME,SfxUInt32Item WhatLayout 
ID_VAL_WHATLAYOUT,SfxBoolItem IsPageBack ID_VAL_ISPAGEBACK,SfxBoolItem 
IsPageObj ID_VAL_ISPAGEOBJ)
+(SfxStringItem PageName ID_VAL_PAGENAME,SfxUInt32Item WhatLayout 
ID_VAL_WHATLAYOUT,SfxBoolItem IsPageBack ID_VAL_ISPAGEBACK,SfxBoolItem 
IsPageObj ID_VAL_ISPAGEOBJ,SfxUInt16Item InsertPos ID_INSERT_POS)
 [
     AutoUpdate = FALSE,
     FastCall = FALSE,
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index cb76eaf99844..fdbff6532e1d 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -343,7 +343,7 @@ SdPage* ViewShell::CreateOrDuplicatePage (
                     eNotesLayout,
                     bIsPageBack,
                     bIsPageObj,
-                    nInsertPosition);
+                    pInsertPos ? (pInsertPos->GetValue()*2)+1 : 
nInsertPosition);
             break;
 
         case SID_DUPLICATE_PAGE:

Reply via email to