mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Graphics only handle inset-modify graphics (#8262)
inset-modify tabular and others are now passed on.
This commit is contained in:
parent
43d464cca0
commit
4bd0941b4f
@ -203,6 +203,11 @@ void InsetGraphics::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_INSET_MODIFY: {
|
case LFUN_INSET_MODIFY: {
|
||||||
|
if (cmd.getArg(0) != "graphics") {
|
||||||
|
Inset::doDispatch(cur, cmd);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
InsetGraphicsParams p;
|
InsetGraphicsParams p;
|
||||||
string2params(to_utf8(cmd.argument()), buffer(), p);
|
string2params(to_utf8(cmd.argument()), buffer(), p);
|
||||||
if (p.filename.empty()) {
|
if (p.filename.empty()) {
|
||||||
@ -240,8 +245,10 @@ bool InsetGraphics::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
FuncStatus & flag) const
|
FuncStatus & flag) const
|
||||||
{
|
{
|
||||||
switch (cmd.action()) {
|
switch (cmd.action()) {
|
||||||
case LFUN_INSET_EDIT:
|
|
||||||
case LFUN_INSET_MODIFY:
|
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_INSET_DIALOG_UPDATE:
|
||||||
case LFUN_GRAPHICS_RELOAD:
|
case LFUN_GRAPHICS_RELOAD:
|
||||||
flag.setEnabled(true);
|
flag.setEnabled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user