mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Another buffer pointer fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23976 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e13589ef99
commit
40f58da65a
@ -1675,7 +1675,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
setLayout(cur, tclass.defaultLayoutName());
|
||||
ParagraphParameters p;
|
||||
setParagraphs(cur, p);
|
||||
insertInset(cur, new InsetFloatList(to_utf8(cmd.argument())));
|
||||
// FIXME This should be simplified when InsetFloatList takes a
|
||||
// Buffer in its constructor.
|
||||
InsetFloatList * ifl = new InsetFloatList(to_utf8(cmd.argument()));
|
||||
ifl->setBuffer(bv->buffer());
|
||||
insertInset(cur, ifl);
|
||||
cur.posForward();
|
||||
} else {
|
||||
lyxerr << "Non-existent float type: "
|
||||
|
@ -389,6 +389,7 @@ void ButtonPolicy::initNoRepeatedApplyReadOnly()
|
||||
state_machine_[VALID][SMI_READ_ONLY] = RO_VALID;
|
||||
// State::INVALID
|
||||
state_machine_[INVALID][SMI_INVALID] = INVALID;
|
||||
state_machine_[INVALID][SMI_OKAY] = INVALID;
|
||||
state_machine_[INVALID][SMI_READ_WRITE] = INVALID;
|
||||
state_machine_[INVALID][SMI_VALID] = VALID;
|
||||
state_machine_[INVALID][SMI_RESTORE] = INITIAL;
|
||||
|
Loading…
Reference in New Issue
Block a user