From: Jürgen Spitzmüller Date: Sat, 25 Mar 2006 09:18:28 +0000 (+0000) Subject: * src/text.C (bool LyXText::backspace): X-Git-Tag: 1.6.10~13442 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e46d6cfc53a1e83d356b14fd8a240b9f57aa7932;p=features.git * 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 --- diff --git a/src/text.C b/src/text.C index 2ef4adb2a1..d19a338493 100644 --- a/src/text.C +++ b/src/text.C @@ -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];