From: Vincent van Ravesteijn Date: Tue, 30 Nov 2010 05:02:12 +0000 (+0000) Subject: Really fix bug #6908. X-Git-Tag: 2.0.0~1597 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c145665832bfd8e4abf93136dd39c5b0eab4002b;p=lyx.git Really fix bug #6908. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36618 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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; } + }