From: Richard Heck Date: Wed, 26 Mar 2008 17:02:24 +0000 (+0000) Subject: Another buffer pointer fix. X-Git-Tag: 1.6.10~5414 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=40f58da65a2adda0fa0bebe6ab714fe347ead302;p=lyx.git Another buffer pointer fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23976 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index da7b62a95b..4f5d3dcf42 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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: " diff --git a/src/frontends/qt4/ButtonPolicy.cpp b/src/frontends/qt4/ButtonPolicy.cpp index e2a3431b67..463c1611ea 100644 --- a/src/frontends/qt4/ButtonPolicy.cpp +++ b/src/frontends/qt4/ButtonPolicy.cpp @@ -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;