Bo Peng wrote: > Open the attached lyx file, move cursor to the end of the second line > (actually anywhere with pos > length of previous line). Edit -> > paragraph up, lyx crashes.
fix attached. Jürgen
Index: src/Text3.cpp =================================================================== --- src/Text3.cpp (Revision 19062) +++ src/Text3.cpp (Arbeitskopie) @@ -375,6 +375,7 @@ recUndo(cur, pit, pit + 1); finishUndo(); std::swap(pars_[pit], pars_[pit + 1]); + cur.fixIfBroken(); updateLabels(cur.buffer()); needsUpdate = true; break; @@ -385,6 +386,7 @@ recUndo(cur, pit - 1, pit); finishUndo(); std::swap(pars_[pit], pars_[pit - 1]); + cur.fixIfBroken(); updateLabels(cur.buffer()); needsUpdate = true; break;