]> git.lyx.org Git - features.git/commitdiff
do not try to expand arguments in mathed (bug #8482)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 5 Jan 2013 08:41:53 +0000 (09:41 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 5 Jan 2013 08:41:53 +0000 (09:41 +0100)
src/frontends/qt4/Menus.cpp

index e4cbeeee60a85f2d77e59b9e9cfa638895cb60ac..1c641a020c7e417e14ede86b916629ceaabacbd7 100644 (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())