diff options
author | Jim Raykowski <raykowj@gmail.com> | 2021-12-17 21:30:47 -0900 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-22 13:02:21 +0100 |
commit | 66bdf73ccceb567f8aeea1859aefdeceb4fe92cd (patch) | |
tree | 25529148f326fd316de8f805b975dc3a2492f737 | |
parent | only use X509Data (diff) | |
download | core-66bdf73ccceb567f8aeea1859aefdeceb4fe92cd.tar.gz core-66bdf73ccceb567f8aeea1859aefdeceb4fe92cd.zip |
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 <raykowj@gmail.com>
(cherry picked from commit 6485187c5351f9356a3f27bae86bd0460b6bd3c8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127181
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit ca9102b9ddaa228fd8820c35a74a19bcd85710e0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127184
-rw-r--r-- | sw/source/core/inc/doctxm.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }; |