]> git.lyx.org Git - features.git/commitdiff
Graphics only handle inset-modify graphics (#8262)
authorScott Kostyshak <skostysh@lyx.org>
Wed, 5 Feb 2014 22:59:39 +0000 (17:59 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 17 May 2014 03:38:32 +0000 (23:38 -0400)
inset-modify tabular and others are now passed on.

src/insets/InsetGraphics.cpp

index 70b43c4da1c851ce540ce7483966523aa002a26b..08d7e82a035328f526337cdf385aae00629ce4d3 100644 (file)
@@ -203,6 +203,11 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
        }
 
        case LFUN_INSET_MODIFY: {
+               if (cmd.getArg(0) != "graphics") {
+                       Inset::doDispatch(cur, cmd);
+                       break;
+               }
+
                InsetGraphicsParams p;
                string2params(to_utf8(cmd.argument()), buffer(), p);
                if (p.filename.empty()) {
@@ -240,8 +245,10 @@ bool InsetGraphics::getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const
 {
        switch (cmd.action()) {
-       case LFUN_INSET_EDIT:
        case LFUN_INSET_MODIFY:
+               if (cmd.getArg(0) != "graphics")
+                       return Inset::getStatus(cur, cmd, flag);
+       case LFUN_INSET_EDIT:
        case LFUN_INSET_DIALOG_UPDATE:
        case LFUN_GRAPHICS_RELOAD:
                flag.setEnabled(true);