Andre Poenitz wrote: Well, since you want people to look at it...
Shouldn't the reading of the inset now go in Buffer::readInset? buffer.C: readInset: ... } else if (cmdName == "bibitem") { lex.printError("Wrong place for bibitem"); inset = new InsetBibKey(inscmd); What's going on here in text2.C + //if (!par->bibkey()) { + if (par->bibkey()) { + par->bibkey()->setCounter(number); + par->params().labelString(layout->labelstring()); + } + // else { + // InsetCommandParams p("bibitem"); + // par->bibkey() = new InsetBibKey(p); + //} // In biblio should't be following counters but... And what's going on here? Index: src/insets/insetbib.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetbib.h,v retrieving revision 1.48 diff -u -p -r1.48 insetbib.h --- src/insets/insetbib.h 13 Feb 2003 16:53:01 -0000 1.48 +++ src/insets/insetbib.h 17 Feb 2003 14:51:43 -0000 @@ -46,9 +46,11 @@ public: /// EDITABLE editable() const { return IS_EDITABLE; } /// A user can't neither insert nor delete this inset - bool deletable() const { - return false; - } + //bool deletable() const { + // return false; + //} + /// keep .lyx format compatible + bool directWrite() const { return true; } /// void setCounter(int); -- Angus