* 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/branches/BRANCH_1_4_X@13493 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-03-25 14:37:08 +00:00
parent 1333a74909
commit 6a8475c331
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-25 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text.C (backspace): don't try to go to previous par when in
first par (fix crash in change tracking mode).
2006-03-23 Lars Gullik Bjønnes <larsbj@gullik.net>
* output_latex.h:

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