Georg Baum a écrit :
The attached patch implements that and works for me as well. What needs to
be done if this should go in is to check for side effects everywhere where
editable() is used (fortunately only ~ 3 places), and better testing, but I
think that this approach is prefereable to the getChar hack.
If you needed an even simpler patch for the crash, try the attached...
It fix the crashes but it does funny things with the cursor :-)
Abdel
PS: I am _not_ advocating applying this patch. But knowing Lars a bit
now he will maybe prefer this bad solution ;-)
Index: dociterator.C
===================================================================
RCS file: /var/cvs/lyx/lyx-devel/src/dociterator.C,v
retrieving revision 1.34
diff -u -r1.34 dociterator.C
--- dociterator.C 28 Jan 2006 09:46:58 -0000 1.34
+++ dociterator.C 22 Feb 2006 17:47:47 -0000
@@ -561,8 +561,10 @@
lyxerr << BOOST_CURRENT_FUNCTION
<< " Should not happen, but does e.g. after C-n
C-l C-z S-C-z"
<< '\n' << "dit: " << dit << '\n'
- << " lastpos: " << dit.lastpos() << endl;
+ << " lastpos: " << dit.lastpos()
+ << " i=" << i << " n=" << n << endl;
//break;
+ continue;
BOOST_ASSERT(false);
}
dit.push_back(data_[i]);