From c00c95aa73144f005a287cb53b4e98db0219c305 Mon Sep 17 00:00:00 2001 From: Gülşah Köse <gulsahkose@collabora.com> Date: Tue, 20 Aug 2024 15:11:00 +0300 Subject: ONLINE: Insert slide to specific position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Online was appending new slides at the end. With this change we can handle position argument. Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com> Change-Id: I8d5ff041b7dc4c4bbe6bcfe43d842f8ca87ae2e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172113 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> --- sd/source/ui/view/viewshe3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source') diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx index 31383ea7d560..45b6e99cb091 100644 --- a/sd/source/ui/view/viewshe3.cxx +++ b/sd/source/ui/view/viewshe3.cxx @@ -344,7 +344,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( eNotesLayout, bIsPageBack, bIsPageObj, - nInsertPosition); + pInsertPos ? (pInsertPos->GetValue()*2)+1 : nInsertPosition); break; case SID_DUPLICATE_PAGE: -- cgit