diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2023-06-14 12:42:22 +0200 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-10-11 09:31:31 +0200 |
commit | 4c7e8b3593c6311375603616c8d5bbd8ce5022f5 (patch) | |
tree | 47acd49ddf84c33c4a2f8a8d8c894183f76248d5 /sd/source | |
parent | 60a51b8397154e9685e63cff0a60c1a3da034423 (diff) |
fixup for: fe79008f70e7 sd: send correct slide visibility status
Check pointer to be vaild
Change-Id: Id7be4756496f034c4a6a4407cb625e68a66573c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153051
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 93a28b3bc8a50226a111464b08ac51d1feb05988)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157761
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f5a7f112ca6e..c087ade87b5e 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2369,7 +2369,8 @@ OUString SdXImpressDocument::getPartInfo(int nPart) if (!pViewSh) return OUString(); - const bool bIsVisible = !pViewSh->GetDoc()->GetSdPage(nPart, pViewSh->GetPageKind())->IsExcluded(); + const SdPage* pSdPage = mpDoc->GetSdPage(nPart, pViewSh->GetPageKind()); + const bool bIsVisible = pSdPage && !pSdPage->IsExcluded(); const bool bIsSelected = pViewSh->IsSelected(nPart); const sal_Int16 nMasterPageCount= pViewSh->GetDoc()->GetMasterSdPageCount(pViewSh->GetPageKind()); |