fix crash in backspace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9225 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2004-11-11 08:12:10 +00:00
parent dacd4cea26
commit 44544dc0e4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-11 Alfredo Braunstein <abraunst@lyx.org>
* text.C (backspace): fix crash
2004-11-09 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* format.[Ch] (getFormatFromFile): new method

View File

@ -1631,7 +1631,7 @@ void LyXText::backspace(LCursor & cur)
&& (pars_[cpit].layout() == pars_[tmppit].layout()
|| pars_[tmppit].layout() == tclass.defaultLayout())
&& pars_[cpit].getAlign() == pars_[tmppit].getAlign()) {
mergeParagraph(bufparams, buf.paragraphs(), cpit);
mergeParagraph(bufparams, pars_, cpit);
if (cur.pos() != 0 && pars_[cpit].isSeparator(cur.pos() - 1))
--cur.pos();