mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +00:00
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:
parent
d38b11b29a
commit
2bd480132a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user