From 1c22b41b6e0439579438415941dba7614b17e6f4 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 16 Apr 2010 15:42:33 +0000 Subject: [PATCH] Handle LFUN_IN_MATHMACROTEMPLATE for non mathmacro insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34163 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 508ba5ad94..d99884b20a 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -384,6 +384,11 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd, flag.setEnabled(false); return false; } + + case LFUN_IN_MATHMACROTEMPLATE: + // By default we're not in a MathMacroTemplate inset + flag.setEnabled(false); + return true; default: break;