diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index e4cbeeee60..1c641a020c 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -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())