1. create a lyx file 2. layout LyX-code 3. enter something with leading blanks. a b 4. select, change layout to standard, the leading blanks of b are not removed. 5. select all, insert ERT. crash.
Assertion triggered in int lyx::Paragraph::Pimpl::eraseChars(lyx::pos_type, lyx::pos_type, bool) by failing check "end >= start && end <= size() + 1" in file src/Paragraph.cpp:554 The problem seems to be with the leading blanks of these lines. Cheers, Bo