mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix #6344.
For some reason, special code was added for LFUN_INDEX_INSERT when it was not actually needed. So just delete it.
This commit is contained in:
parent
64acc06b91
commit
83356ab9fe
@ -249,20 +249,7 @@ static bool doInsertInset(Cursor & cur, Text * text,
|
|||||||
ci->setButtonLabel();
|
ci->setButtonLabel();
|
||||||
|
|
||||||
cur.recordUndo();
|
cur.recordUndo();
|
||||||
if (cmd.action() == LFUN_INDEX_INSERT) {
|
if (cmd.action() == LFUN_ARGUMENT_INSERT) {
|
||||||
docstring ds = subst(text->getStringToIndex(cur), '\n', ' ');
|
|
||||||
text->insertInset(cur, inset);
|
|
||||||
if (edit)
|
|
||||||
inset->edit(cur, true);
|
|
||||||
// Now put this into inset
|
|
||||||
Font const f(inherit_font, cur.current_font.language());
|
|
||||||
if (!ds.empty()) {
|
|
||||||
cur.text()->insertStringAsLines(cur, ds, f);
|
|
||||||
cur.leaveInset(*inset);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else if (cmd.action() == LFUN_ARGUMENT_INSERT) {
|
|
||||||
bool cotextinsert = false;
|
bool cotextinsert = false;
|
||||||
InsetArgument const * const ia = static_cast<InsetArgument const *>(inset);
|
InsetArgument const * const ia = static_cast<InsetArgument const *>(inset);
|
||||||
Layout const & lay = cur.paragraph().layout();
|
Layout const & lay = cur.paragraph().layout();
|
||||||
|
Loading…
Reference in New Issue
Block a user