mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix bug #7755: Unknown tabular feature "from-dialog"
"from-dialog" is added to the LFUN_INSET_MODIFY function when it is issued from the table settings dialog. This is done to prevent the checking of the individual parameters, because it has to consider all parameters alltogether. Besides, when issued from the dialog it is already guaranteed that the parameters are valid. This parameter should not be passed onto tabularfeatures. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40376 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0b790c05b8
commit
a0d8157891
@ -4159,10 +4159,16 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.bv().showDialog("tabular");
|
cur.bv().showDialog("tabular");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_INSET_MODIFY:
|
case LFUN_INSET_MODIFY: {
|
||||||
if (!tabularFeatures(cur, to_utf8(cmd.argument())))
|
string arg;
|
||||||
|
if (cmd.getArg(1) == "from-dialog")
|
||||||
|
arg = cmd.getArg(0) + to_utf8(cmd.argument().substr(19));
|
||||||
|
else
|
||||||
|
arg = to_utf8(cmd.argument());
|
||||||
|
if (!tabularFeatures(cur, arg))
|
||||||
cur.undispatched();
|
cur.undispatched();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// insert file functions
|
// insert file functions
|
||||||
case LFUN_FILE_INSERT_PLAINTEXT_PARA:
|
case LFUN_FILE_INSERT_PLAINTEXT_PARA:
|
||||||
|
Loading…
Reference in New Issue
Block a user