Juergen Spitzmueller wrote:
> - create a new document
> - insert a collapsable (e.g. ert)
> - move the cursor before the inset
> - press backspace

I think I see what's going on. The crash only happens if you hit backspace 
when the cursor is in front of an *opened* collapsable (a closed collapsable 
gets deleted, as it should be).
Now LyXText::Delete basically just moves the cursor to the right and calls 
LyXText::backspace. That is, if the collapsable is opened, the cursor gets 
moved *inside* the collapsable. That triggers BOOST_ASSERT(this == 
cur.text()) in LyXText::backspace. I guess the collapsable should be closed 
before cursorRight or the cursor should just jump across the inset.

Over to the A*-Team. 
Happy easter,
Jürgen.

Reply via email to