On 09/05/2009 17:49, rgh...@lyx.org wrote:
Author: rgheck
Date: Sat May 9 17:49:09 2009
New Revision: 29583
URL: http://www.lyx.org/trac/changeset/29583
Log:
Fix outliner crash reported by Vincent.
Modified:
lyx-devel/trunk/src/Text3.cpp
Modified: lyx-devel/trunk/src/Text3.cpp
==============================================================================
--- lyx-devel/trunk/src/Text3.cpp Sat May 9 11:16:43 2009 (r29582)
+++ lyx-devel/trunk/src/Text3.cpp Sat May 9 17:49:09 2009 (r29583)
@@ -311,12 +311,12 @@
Buffer& buf = *cur.buffer();
pit_type& pit = cur.pit();
ParagraphList& pars = buf.text().paragraphs();
- ParagraphList::iterator bgn = pars.begin();
+ ParagraphList::iterator const bgn = pars.begin();
// The first paragraph of the area to be copied:
ParagraphList::iterator start = boost::next(bgn, pit);
// The final paragraph of area to be copied:
ParagraphList::iterator finish = start;
- ParagraphList::iterator end = pars.end();
+ ParagraphList::iterator const end = pars.end();
DocumentClass const& tc = buf.params().documentClass();
@@ -333,6 +333,10 @@
break;
}
+ // Do we need to set insets' buffer_ members, because we copied
+ // some stuff? We'll assume we do and reset it otherwise.
+ bool setBuffers = true;
set_buffers
Abdel.