sd/source/core/drawdoc2.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9a62974836be22e15c808daf5edfc547c8fce91a
Author:     Mohit Marathe <[email protected]>
AuthorDate: Tue Dec 2 18:52:16 2025 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Wed Dec 3 10:54:21 2025 +0100

    sd: exclude canvas page from slideshow
    
    Signed-off-by: Mohit Marathe <[email protected]>
    Change-Id: I052e12b08946c26bc129e8bcda4e1ca3c8a8e681
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194926
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 450b9b446bf6..792055d12091 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -1506,6 +1506,7 @@ void SdDrawDocument::ImportCanvasPage()
     SdPage* pPage = GetSdPage(0, PageKind::Standard);
     bool bIsCanvasPageValid = ValidateCanvasPage(pPage);
     pPage->SetCanvasPage();
+    pPage->SetExcluded(true);
     mpCanvasPage = pPage;
     // re-populate the previews grid if not valid
     if (!bIsCanvasPageValid)
@@ -1612,6 +1613,9 @@ sal_uInt16 SdDrawDocument::GetOrInsertCanvasPage()
     if (!pCanvasPage)
         return 0xffff;
 
+    // exclude from slideshow
+    pCanvasPage->SetExcluded(true);
+
     // move the canvas page to the top
     sal_uInt16 nCanvasPageNum = 2 * nCanvasPageIndex + 1;
     MovePage(nCanvasPageNum, 1); // Canvas page

Reply via email to