commit c37cacaffb6f5b84b70cbef17988a33db7398449
Author: Richard Heck <[email protected]>
Date:   Wed Mar 5 17:43:41 2014 -0500

    Check in InsetLabel if LFUN_INSET_MODIFY is intended for us.
    
    Every inset should do this.

diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp
index a6498bc..be8a516 100644
--- a/src/insets/InsetLabel.cpp
+++ b/src/insets/InsetLabel.cpp
@@ -218,6 +218,10 @@ void InsetLabel::doDispatch(Cursor & cur, FuncRequest & 
cmd)
        switch (cmd.action()) {
 
        case LFUN_INSET_MODIFY: {
+               if (cmd.getArg(0) != "label") {
+                       cur.undispatched();
+                       return;
+               }
                InsetCommandParams p(LABEL_CODE);
                // FIXME UNICODE
                InsetCommand::string2params(to_utf8(cmd.argument()), p);

Reply via email to