git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25630 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-15 11:06:02 +00:00
parent c602ab1524
commit 18e9698f6a

View File

@ -2121,7 +2121,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
case LFUN_OUTLINE_DOWN:
case LFUN_OUTLINE_IN:
case LFUN_OUTLINE_OUT:
enable = (cur.paragraph().layout().toclevel != Layout::NOT_IN_TOC);
// FIXME: LyX is not ready for outlining within inset.
enable = isMainText(cur.bv().buffer())
&& cur.paragraph().layout().toclevel != Layout::NOT_IN_TOC;
break;
case LFUN_NEWLINE_INSERT: