]> git.lyx.org Git - features.git/commitdiff
Really fix bug #6908.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 05:02:12 +0000 (05:02 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 05:02:12 +0000 (05:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36618 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetERT.cpp

index 88c883e8f820671c7a6e59ebc31d68df60478f50..61b3128ffb82451f6935e3b5d325f7a05c22c8af 100644 (file)
@@ -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;
        }
+
 }