On Mon, May 13, 2002 at 09:56:49AM +0200, Piroux Geoffroy wrote: > For me lyx crash each time with the message at the console : "out of memory" > Remark you can start directly from the second step, it carsh also.
Ok, I see it now. The attached patch should fix the crash. There is a user-unfriendly part in it as it does not erease the contents of the selection first, but this would either meen copying almost everything from erase() to paste() or to fiddle around with the cut&paste mechanism which is the correct way but I won't do right now. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Index: math_cursor.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_cursor.C,v retrieving revision 1.258 diff -u -p -r1.258 math_cursor.C --- math_cursor.C 8 May 2002 16:17:57 -0000 1.258 +++ math_cursor.C 13 May 2002 08:34:45 -0000 @@ -130,7 +130,7 @@ struct Selection { if (data_.nargs() == 1) { // single cell/part of cell - cursor.insert(data_.cell(0)); + cursor.paste(data_.cell(0)); } else { // mulitple cells idx_type idx; // index of upper left cell