From f68fcc98a9b56e2e01471c335bab8e8afa372e5d Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 26 Jan 2010 16:57:29 +0000 Subject: [PATCH] Fix bug #6477: LFUN_OUTLINE_* don't work anymore. This code was erroneously killed in r33050. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33229 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index ef69765de7..4fd8e84290 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -2509,6 +2509,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, case LFUN_OUTLINE_DOWN: case LFUN_OUTLINE_IN: case LFUN_OUTLINE_OUT: + // FIXME: LyX is not ready for outlining within inset. + enable = isMainText() + && cur.paragraph().layout().toclevel != Layout::NOT_IN_TOC; + break; case LFUN_NEWLINE_INSERT: // LaTeX restrictions (labels or empty par) -- 2.39.5