Merge branch 'master' of git.lyx.org:lyx

This commit is contained in:
Kornel Benko 2013-01-05 10:10:19 +01:00
commit 40b0f3dfae
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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())

View File

@ -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")