* src/text.C (bool LyXText::backspace):

don't try to go to previous par when in first par 
	(fix crash in change tracking mode). 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-03-25 09:18:28 +00:00
parent 299a19c3c0
commit e46d6cfc53

View File

@ -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];