cur.recordUndo();
if (cmd.action() == LFUN_ARGUMENT_INSERT) {
bool cotextinsert = false;
- InsetArgument const * const ia = static_cast<InsetArgument const *>(inset);
+ InsetArgument * const ia = static_cast<InsetArgument *>(inset);
Layout const & lay = cur.paragraph().layout();
Layout::LaTeXArgMap args = lay.args();
Layout::LaTeXArgMap::const_iterator const lait = args.find(ia->name());
else
ds = cur.paragraph().asString();
text->insertInset(cur, inset);
+ ia->init(cur.paragraph());
if (edit)
inset->edit(cur, true);
// Now put co-text into inset
inset_text->setOuterFont(cur.bv(), font.fontInfo());
}
+ if (cmd.action() == LFUN_ARGUMENT_INSERT) {
+ InsetArgument * const ia = static_cast<InsetArgument *>(inset);
+ ia->init(cur.paragraph());
+ }
+
if (edit)
inset->edit(cur, true);
bv->buffer().params().spellignore().push_back(wl);
cur.recordUndo();
// trigger re-check of whole buffer
- ParagraphList & pars = bv->buffer().paragraphs();
- ParagraphList::iterator pit = pars.begin();
- ParagraphList::iterator pend = pars.end();
- for (; pit != pend; ++pit)
- pit->requestSpellCheck();
+ bv->buffer().requestSpellcheck();
}
break;
}
bv->buffer().params().spellignore().erase(it);
cur.recordUndo();
// trigger re-check of whole buffer
- ParagraphList & pars = bv->buffer().paragraphs();
- ParagraphList::iterator pit = pars.begin();
- ParagraphList::iterator pend = pars.end();
- for (; pit != pend; ++pit)
- pit->requestSpellCheck();
+ bv->buffer().requestSpellcheck();
}
break;
}
break;
case LFUN_PRIMARY_SELECTION_PASTE:
+ status.setUnknown(!theSelection().supported());
enable = cur.selection() || !theSelection().empty();
break;