diff options
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 1d33a9e15c01..a64e772ac138 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1648,6 +1648,18 @@ void ScContentTree::ApplyNavigatorSettings() ScContentId nEntry = static_cast<ScContentId>(i); if( pRootNodes[ nEntry ] ) { + // gray or ungray + if( GetChildCount( pRootNodes[ nEntry ] ) == 0 ) + { + pRootNodes[ nEntry ]->SetFlags( pRootNodes[ nEntry ]->GetFlags() | SvTLEntryFlags::SEMITRANSPARENT ); + pRootNodes[ nEntry ]->SetTextColor( COL_GRAY ); + } + else + { + pRootNodes[ nEntry ]->SetFlags( pRootNodes[ nEntry ]->GetFlags() & ~SvTLEntryFlags::SEMITRANSPARENT ); + pRootNodes[ nEntry ]->SetTextColor( GetTextColor() ); + } + // expand bool bExp = pSettings->IsExpanded( nEntry ); if( bExp != IsExpanded( pRootNodes[ nEntry ] ) ) |