sd/source/ui/unoidl/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fe79008f70e7a790e4f78c1714c27ea223512327 Author: Pranam Lashkari <[email protected]> AuthorDate: Wed Jun 7 03:59:31 2023 +0700 Commit: Pranam Lashkari <[email protected]> CommitDate: Tue Jun 13 13:29:09 2023 +0200 sd: send correct slide visibility status The term visible may be a bit aambiguous here, we try trying to send info about if the slide is hidden or visible in the slide show. The correct property for that is "exclude" Change-Id: Ic505036181b71686656bd2338b9d0329c12d9e74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152688 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Pranam Lashkari <[email protected]> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 5a88fe21c8f8..92879fcd770a 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2362,7 +2362,7 @@ OUString SdXImpressDocument::getPartInfo(int nPart) if (!pViewSh) return OUString(); - const bool bIsVisible = pViewSh->IsVisible(nPart); + const bool bIsVisible = !pViewSh->GetDoc()->GetSdPage(nPart, pViewSh->GetPageKind())->IsExcluded(); const bool bIsSelected = pViewSh->IsSelected(nPart); const sal_Int16 nMasterPageCount= pViewSh->GetDoc()->GetMasterSdPageCount(pViewSh->GetPageKind());
