sd/source/ui/func/fusel.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit 888cec782f67bc9a8299c345e4023de95a8dfc2e Author: Mohit Marathe <[email protected]> AuthorDate: Wed Nov 12 17:43:18 2025 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Mon Jan 12 19:36:13 2026 +0100 sd: switch to corresponding page on double clicking page preview Signed-off-by: Mohit Marathe <[email protected]> Change-Id: I99f120fd0504d5925188cb9a4578ada49436c544 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193861 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196698 diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index c65486f8e2a7..deeb3e56889a 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -20,6 +20,7 @@ #include <fusel.hxx> #include <svx/svddrgmt.hxx> #include <svx/svdpagv.hxx> +#include <svx/svdopage.hxx> #include <svx/svdogrp.hxx> #include <svx/scene3d.hxx> #include <vcl/imapobj.hxx> @@ -351,6 +352,16 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt) bReturn = pPV->EnterGroup(pObj); } } + else if (pObj->GetObjIdentifier() == SdrObjKind::Page) + { + if (rMEvt.GetClicks() == 2) + { + SdrPageObj* pPageObj = static_cast<SdrPageObj*>(pObj); + sal_uInt16 nPageNum = (pPageObj->GetReferencedPage()->GetPageNum() - 1) / 2; + DrawViewShell* pDrawViewShell = dynamic_cast<DrawViewShell*>(&mrViewShell); + pDrawViewShell->SwitchPage(nPageNum); + } + } } // #i71727# replaced else here with two possibilities, once the original else (!pObj)
