mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
* insettext.C (read): make sure there is at least one par
in the text after reading. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7850 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8ba548f1a0
commit
d839975cfc
@ -1,3 +1,8 @@
|
||||
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.
|
||||
@ -307,9 +312,9 @@
|
||||
|
||||
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>
|
||||
|
||||
|
@ -172,10 +172,12 @@ void InsetText::read(Buffer const & buf, LyXLex & lex)
|
||||
|
||||
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();
|
||||
|
||||
@ -206,6 +208,11 @@ void InsetText::read(Buffer const & buf, LyXLex & lex)
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user