do not try to expand arguments in mathed (bug #8482)

This commit is contained in:
Juergen Spitzmueller 2013-01-05 09:41:53 +01:00
parent 66ac0bbd8a
commit f164ffd093

View File

@ -1572,6 +1572,9 @@ void MenuDefinition::expandArguments(BufferView const * bv, bool switcharg)
if (!bv) if (!bv)
return; return;
if (!bv->cursor().inTexted())
return;
Inset const * inset = &bv->cursor().inset(); Inset const * inset = &bv->cursor().inset();
Layout::LaTeXArgMap args = bv->cursor().paragraph().layout().args(); Layout::LaTeXArgMap args = bv->cursor().paragraph().layout().args();
if (inset && args.empty()) if (inset && args.empty())