From: Scott Kostyshak Date: Wed, 5 Feb 2014 22:59:39 +0000 (-0500) Subject: Graphics only handle inset-modify graphics (#8262) X-Git-Tag: 2.2.0alpha1~1942 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4bd0941b4fec92354b52bfe82835f7ebb8981d21;p=features.git Graphics only handle inset-modify graphics (#8262) inset-modify tabular and others are now passed on. --- diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index 70b43c4da1..08d7e82a03 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -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);