LyX crashes in change tracking mode when pressing backspace at the very first 
position in a document.
The attached patch goes into trunk now, and I propose to put it into branch as 
well.

Jürgen
Index: src/text.C
===================================================================
--- src/text.C	(Revision 13489)
+++ src/text.C	(Arbeitskopie)
@@ -1681,7 +1681,7 @@ bool LyXText::backspace(LCursor & cur)
 		// the the backspace will collapse two paragraphs into
 		// one.
 
-		if (cur.buffer().params().tracking_changes) {
+		if (cur.pit() != 0 && cur.buffer().params().tracking_changes) {
 			// Previous paragraph, mark "carriage return" as
 			// deleted:
 			Paragraph & par = pars_[cur.pit() - 1];

Reply via email to