From c145665832bfd8e4abf93136dd39c5b0eab4002b Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 30 Nov 2010 05:02:12 +0000 Subject: [PATCH] Really fix bug #6908. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36618 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetERT.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetERT.cpp b/src/insets/InsetERT.cpp index 88c883e8f8..61b3128ffb 100644 --- a/src/insets/InsetERT.cpp +++ b/src/insets/InsetERT.cpp @@ -112,14 +112,17 @@ int InsetERT::docbook(odocstream & os, OutputParams const &) const void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd) { switch (cmd.action()) { - case LFUN_INSET_MODIFY: { - setStatus(cur, string2params(to_utf8(cmd.argument()))); - break; - } + case LFUN_INSET_MODIFY: + if (cmd.getArg(0) == "ert") { + setStatus(cur, string2params(to_utf8(cmd.argument()))); + break; + } + //fall-through default: InsetCollapsable::doDispatch(cur, cmd); break; } + } -- 2.39.2