[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sd/source
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 13 20:53:47 UTC 2020
sd/source/ui/view/drviews2.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 494cee664a3b3dc64dc83e1c29b17097d184a2d7
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Oct 6 18:53:34 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Oct 13 22:53:15 2020 +0200
fixed crashing on duplicating slide if slide pan is not visible
Change-Id: I30cdc8365d0a31b408dc4eb18b195703837c838a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104027
Tested-by: Andras Timar <andras.timar at collabora.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index ad6802318591..85587bbde585 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -770,10 +770,17 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
case SID_DUPLICATE_PAGE:
{
+ auto slideSorter = sd::slidesorter::SlideSorterViewShell::GetSlideSorter(GetViewShellBase());
+ SdPage* pNewPage = nullptr;
+ if(slideSorter)
DuplicateSelectedSlides(rReq);
+ else
+ pNewPage = CreateOrDuplicatePage (rReq, mePageKind, GetActualPage());
Cancel();
if(HasCurrentFunction(SID_BEZIER_EDIT) )
GetViewFrame()->GetDispatcher()->Execute(SID_OBJECT_SELECT, SfxCallMode::ASYNCHRON);
+ if(!slideSorter && pNewPage != nullptr)
+ SwitchPage((pNewPage->GetPageNum()-1)/2);
rReq.Done();
}
break;
More information about the Libreoffice-commits
mailing list