From f164ffd0937eb35a12bbd137217dc607e7d7515a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 5 Jan 2013 09:41:53 +0100 Subject: [PATCH] do not try to expand arguments in mathed (bug #8482) --- src/frontends/qt4/Menus.cpp | 3 +++ 1 file changed, 3 insertions(+) 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())