[Libreoffice-commits] core.git: sw/source
Gulsah Kose
gulsah.1004 at gmail.com
Wed Oct 18 13:56:44 UTC 2017
sw/source/uibase/shells/basesh.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit e149c4f3dcd08b9331dbbecf31c200d4d3bb02b5
Author: Gulsah Kose <gulsah.1004 at gmail.com>
Date: Tue Oct 17 15:09:37 2017 +0300
tdf#112808 Disable "Edit Region" command while cursor in an index.
Change-Id: Icefa1e42831ad0ba7a9f5346545adac0033ce3e0
Signed-off-by: Gulsah Kose <gulsah.1004 at gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/43456
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
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:
More information about the Libreoffice-commits
mailing list