diff options
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 8dbfd4e91cc8..c053715bd4ad 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -1398,8 +1398,12 @@ void SwBaseShell::GetState( SfxItemSet &rSet ) break; case FN_EDIT_CURRENT_REGION: - if( !rSh.GetCurrSection() ) + //tdf#112808 if cursor is in an index, don't show the edit section. + if( !rSh.GetCurrSection() || + rSh.GetCurrSection()->GetType() != CONTENT_SECTION ) + { rSet.DisableItem(nWhich); + } break; case FN_INSERT_REGION: |