On Wed, Oct 05, 2005 at 03:05:55PM -0400, Bennett Helm wrote:
> Here's a recipe for a crash with lyx-140 patch with Martin's speedup  
> patch (x.diff as of 9/29).
> 
> Type some arbitrary text. Below this, create an inset in a paragraph  
> all by itself; set this paragraph to have no indentation. Place the  
> cursor at the end of the line immediately above the inset. Press  
> return to create a new paragraph, and then down-arrow: crash.
> 
> Note that the inset must be in a paragraph set with no indentation.

The culprit:

Assertion triggered in CursorSlice LCursor::anchor() const by failing
check "anchor_.depth() >= depth()" in file cursor.C:411

I suspect the following code marked by a friendly soul: 

   1283 #ifdef WITH_WARNINGS
   1284 #warning DEPM, look here
   1285 #endif
   1286 //              if (cur.anchor().pit() > old.pit())
   1287 //                      --cur.anchor().pit();
   1288
   1289                 if (selection_position_was_oldcursor_position) {
   1290                         // correct selection
   1291                         cur.resetAnchor();
   1292                 }

in text2.C. Unlikely to be related to my speedup patch, but what do I
know.

- Martin

Attachment: pgpQdSAl7MaVN.pgp
Description: PGP signature

Reply via email to