Jean-Marc Lasgouttes wrote:
Abdelrazak Younes<[EMAIL PROTECTED]>  writes:
Agreed. Could the paste code be the culprit?

Found it:

breakParagraphConservative(): don't forget to set the inset owner. This is the 
real fix for bughttp://bugzilla.lyx.org/show_bug.cgi?id=5099

Great. It might even be my fault...

Nope, pretty old stuff, I wonder why we were hit by this just now...

$ git blame -L 159,+20 src/paragraph_funcs.cpp
627b3e06 src/paragraph_funcs.C (larsbj 2003-03-06 10:02:40 +0000 159) void breakParagraphConservative(BufferParams const & bpara 91b4e24a src/paragraph_funcs.C (abraunst 2004-11-24 21:53:46 +0000 160) ParagraphList & pars, pit_type par_offset, pos_typ
7cd1d017 src/paragraph_funcs.C (larsbj   2002-08-20 19:41:13 +0000 161) {
7cd1d017 src/paragraph_funcs.C (larsbj 2002-08-20 19:41:13 +0000 162) // create a new paragraph 1af90c42 src/paragraph_funcs.C (larsbj 2006-03-23 20:11:06 +0000 163) Paragraph & tmp = *pars.insert(boost::next(pars.be 1af90c42 src/paragraph_funcs.C (larsbj 2006-03-23 20:11:06 +0000 164) Paragraph()); 8a8b0d24 src/paragraph_funcs.C (larsbj 2004-08-13 20:26:26 +0000 165) Paragraph & par = pars[par_offset];
8a8b0d24 src/paragraph_funcs.C (larsbj   2004-08-13 20:26:26 +0000 166)
8a8b0d24 src/paragraph_funcs.C (larsbj 2004-08-13 20:26:26 +0000 167) tmp.makeSameLayout(par);
7cd1d017 src/paragraph_funcs.C (larsbj   2002-08-20 19:41:13 +0000 168)
757da808 src/paragraph_funcs.C (schmitt 2006-11-25 23:02:10 +0000 169) BOOST_ASSERT(pos <= par.size());
757da808 src/paragraph_funcs.C (schmitt  2006-11-25 23:02:10 +0000 170)
757da808 src/paragraph_funcs.C (schmitt 2006-11-25 23:02:10 +0000 171) if (pos < par.size()) { 757da808 src/paragraph_funcs.C (schmitt 2006-11-25 23:02:10 +0000 172) // move everything behind the break positi 8a8b0d24 src/paragraph_funcs.C (larsbj 2004-08-13 20:26:26 +0000 173) pos_type pos_end = par.size() - 1;
7cd1d017 src/paragraph_funcs.C (larsbj   2002-08-20 19:41:13 +0000 174)
757da808 src/paragraph_funcs.C (schmitt 2006-11-25 23:02:10 +0000 175) for (pos_type i = pos, j = 0; i <= pos_end 757da808 src/paragraph_funcs.C (schmitt 2006-11-25 23:02:10 +0000 176) if (moveItem(par, pos, tmp, j, bpa 7cd1d017 src/paragraph_funcs.C (larsbj 2002-08-20 19:41:13 +0000 177) ++j; 30c2ad88 src/paragraph_funcs.C (schmitt 2006-11-05 18:39:03 +0000 178) }
JMarc



Reply via email to