mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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:
parent
7460abc627
commit
e7e67bb9e9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user