+2003-10-02 André Pönitz <poenitz@gmx.net>
+
+ * insettext.C (read): make sure there is at least one par
+ in the text after reading.
+
2003-10-01 José Matos <jamatos@lyx.org>
* insetbranch.C (linuxdoc, docbook): minor fix.
2003-08-28 Angus Leeming <leeming@lyx.org>
- * insetgraphics.C (prepareFile): prepend "convertDefault.sh" with
- "sh ", enabling the conversion to be carried out even if the script
- is not executable.
+ * insetgraphics.C (prepareFile): prepend "convertDefault.sh" with
+ "sh ", enabling the conversion to be carried out even if the script
+ is not executable.
2003-08-28 Lars Gullik Bjønnes <larsbj@gullik.net>
clear(false);
+#warning John, look here. Doesnt make much sense.
if (buf.params().tracking_changes)
paragraphs.begin()->trackChanges();
// delete the initial paragraph
+ Paragraph oldpar = *paragraphs.begin();
paragraphs.clear();
ParagraphList::iterator pit = paragraphs.begin();
lex.printError("Missing \\end_inset at this point. "
"Read: `$$Token'");
}
+
+ // sanity check
+ // ensure we have at least one par.
+ if (paragraphs.empty())
+ paragraphs.push_back(oldpar);
}