fix crash: Copying the paragraphs invalidate the referenced Buffer so a new setBuffer() would be necessary, in it preferable and faster to just use a const ref.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26311 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-09-06 13:49:10 +00:00
parent d38b11b29a
commit 2bd480132a

View File

@ -45,7 +45,7 @@ void writePlaintextFile(Buffer const & buf, odocstream & os,
OutputParams const & runparams)
{
bool ref_printed = false;
ParagraphList const par = buf.paragraphs();
ParagraphList const & par = buf.paragraphs();
ParagraphList::const_iterator beg = par.begin();
ParagraphList::const_iterator end = par.end();
ParagraphList::const_iterator it = beg;