sw/source/core/inc/doctxm.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6485187c5351f9356a3f27bae86bd0460b6bd3c8 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Fri Dec 17 21:30:47 2021 -0900 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Tue Dec 21 08:34:28 2021 +0100 tdf#144672 fix Index entries in Naviator are always grayed out by fixing The return from SwTOXBaseSection::IsVisible. SwSectionFormat::GetInfo for RES_CONTENT_VISIBLE always returns false so it needs negated here and also need to test GetInfo pool item argument for valid pointer to a frame, indicating content is visible. Change-Id: I82326642b5714dd38779cf03a501ed0a2b032bcb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127024 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/core/inc/doctxm.hxx b/sw/source/core/inc/doctxm.hxx index faea538caea8..b2cfe4a55fae 100644 --- a/sw/source/core/inc/doctxm.hxx +++ b/sw/source/core/inc/doctxm.hxx @@ -90,7 +90,7 @@ public: bool IsVisible() const override { SwPtrMsgPoolItem aInfo(RES_CONTENT_VISIBLE, nullptr); - return GetFormat() && GetFormat()->GetInfo(aInfo); + return GetFormat() && !GetFormat()->GetInfo(aInfo) && aInfo.pObject; } };