[Libreoffice-commits] core.git: sw/source

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 29 06:10:24 UTC 2020


 sw/source/uibase/utlui/content.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 000ba228db56c28b6e2a42bf6adefe6ca6cfdffb
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Jan 28 18:52:27 2020 -0900
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jan 29 07:09:48 2020 +0100

    tdf#129625 Gray out content types with no content
    
    This patch is for Writer Navigator only.
    
    Change-Id: I80724a3e24fd38d7b5537e1c923866a914b45898
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87668
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 06de1fb5302c..1063970181e9 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1763,6 +1763,11 @@ void SwContentTree::Display( bool bActive )
                 bool bChOnDemand = 0 != rpContentT->GetMemberCount();
                 pEntry = InsertEntry(sEntry, aImage, aImage,
                                 nullptr, bChOnDemand, TREELIST_APPEND, rpContentT.get());
+                if(pEntry && !pEntry->HasChildren() && !pEntry->HasChildrenOnDemand())
+                {
+                    pEntry->SetFlags(pEntry->GetFlags() | SvTLEntryFlags::SEMITRANSPARENT);
+                    pEntry->SetTextColor(COL_GRAY);
+                }
                 if(nCntType == m_nLastSelType)
                     pSelEntry = pEntry;
                 sal_Int32 nExpandOptions = (State::HIDDEN == m_eState)


More information about the Libreoffice-commits mailing list