mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Merge branch 'master' of git.lyx.org:lyx
This commit is contained in:
commit
40b0f3dfae
@ -255,7 +255,7 @@ enum FuncCode
|
||||
LFUN_MARGINALNOTE_INSERT, // Lgb 20000626
|
||||
LFUN_FLOAT_INSERT, // Lgb 20000627
|
||||
LFUN_FLOAT_WIDE_INSERT, // Lgb 20010531
|
||||
LFUN_CAPTION_INSERT, // Lgb 20000718; inactive as of 20060905
|
||||
LFUN_CAPTION_INSERT, // Lgb 20000718
|
||||
LFUN_BUFFER_SWITCH,
|
||||
// 190
|
||||
LFUN_BUFFER_CHKTEX, // Asger 971030
|
||||
@ -422,7 +422,7 @@ enum FuncCode
|
||||
// 325
|
||||
LFUN_INSET_BEGIN_SELECT, // JMarc, 20090316
|
||||
LFUN_INSET_END_SELECT, // JMarc, 20090316
|
||||
LFUN_INSET_SELECT_ALL, // vfr, 20090822
|
||||
LFUN_INSET_SELECT_ALL, // vfr, 20090822
|
||||
LFUN_BUFFER_ZOOM_IN, // vfr, 20090330
|
||||
LFUN_BUFFER_ZOOM_OUT, // vfr, 20090330
|
||||
// 330
|
||||
|
@ -1572,6 +1572,9 @@ void MenuDefinition::expandArguments(BufferView const * bv, bool switcharg)
|
||||
if (!bv)
|
||||
return;
|
||||
|
||||
if (!bv->cursor().inTexted())
|
||||
return;
|
||||
|
||||
Inset const * inset = &bv->cursor().inset();
|
||||
Layout::LaTeXArgMap args = bv->cursor().paragraph().layout().args();
|
||||
if (inset && args.empty())
|
||||
|
@ -1441,6 +1441,10 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
flag.setEnabled(false);
|
||||
break;
|
||||
|
||||
case LFUN_CAPTION_INSERT:
|
||||
flag.setEnabled(false);
|
||||
break;
|
||||
|
||||
case LFUN_SPACE_INSERT: {
|
||||
docstring const & name = cmd.argument();
|
||||
if (name == "visible")
|
||||
|
Loading…
Reference in New Issue
Block a user