summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorGülşah Köse <gulsahkose@collabora.com>2024-08-20 15:11:00 +0300
committerSzymon Kłos <szymon.klos@collabora.com>2024-08-22 09:15:13 +0200
commitc00c95aa73144f005a287cb53b4e98db0219c305 (patch)
tree89bc2e061abcd766ec48cf49a82b48404f797b16 /sd/source
parent6b857398a59d16308d6185d01e003e401439f060 (diff)
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 <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>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/viewshe3.cxx2
1 files changed, 1 insertions, 1 deletions
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: