mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +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");
|
||||
break;
|
||||
|
||||
case LFUN_INSET_MODIFY:
|
||||
if (!tabularFeatures(cur, to_utf8(cmd.argument())))
|
||||
case LFUN_INSET_MODIFY: {
|
||||
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();
|
||||
break;
|
||||
}
|
||||
|
||||
// insert file functions
|
||||
case LFUN_FILE_INSERT_PLAINTEXT_PARA:
|
||||
|
Loading…
Reference in New Issue
Block a user