On 29-Apr-2002 John Levon wrote:
> Start a new par, and set it to Subsection. Now insert an index list > in this par (this will reset to Standard). Now click before the index > button, and reset it to Subsection. Now start typing. Observe drawing > errors as the cursor is somehow on the line above. As soon as you go > past the end of the line above, ->BOOM I hope it doesn't matter if I had a look ;) Anyway the attached patch fixes the crash, but we have to do some "real" changes to don't allow this in 1.3.0, so we probably should open a bug that it isn't allowd to change the par to "SubSection" or anything other then "Standart" AND IMO the IndexList should have it's own paragraph! Jug -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39100 Bozen Web: http://www.sad.it/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ A husband is what is left of the lover after the nerve has been extracted. -- Helen Rowland
Index: src/text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.226 diff -u -p -r1.226 text2.C --- src/text2.C 22 Apr 2002 16:31:12 -0000 1.226 +++ src/text2.C 30 Apr 2002 08:46:18 -0000 @@ -2073,6 +2073,7 @@ void LyXText::setCursor(BufferView * bvi cur.iy(y + row->baseline()); Inset * ins; if (row->previous() && pos && + row->previous()->par() == row->par() && par->getChar(pos) == Paragraph::META_INSET && (ins=par->getInset(pos)) && (ins->needFullRow() || ins->display())) {