* src/insets/InsetCaption.cpp:

- better fix for the inset-toggle crash resovled in rev. 23929.
	  Now, collapsing works again as in 1.5.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23939 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-03-25 05:33:39 +00:00
parent 7460abc627
commit e7e67bb9e9

View File

@ -194,7 +194,6 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
case LFUN_BREAK_PARAGRAPH:
case LFUN_BREAK_PARAGRAPH_SKIP:
case LFUN_INSET_TOGGLE:
status.enabled(false);
return true;
@ -202,6 +201,11 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
status.enabled(cur.paragraph().insetList().find(OPTARG_CODE) == -1);
return true;
case LFUN_INSET_TOGGLE:
// pass back to owner
cur.undispatched();
return false;
default:
return InsetText::getStatus(cur, cmd, status);
}