Andre Poenitz wrote:
On Mon, Mar 26, 2007 at 05:55:13PM +0200, Abdelrazak Younes wrote:
3189    Backspace in Mathed results in crash

I tried hard to fix that one but failed. Andre, could you please have a look?

I don't get a crash but
"wrong pos 1, max is 0 at level 2. Trying to correct this.
correcting cursor to level 1"

(which is sort of equivalent to a crash logic-wise)

The attached patch fixes it for me, basically by avoiding the
possibly failing MathArray <-> string conversion. Would be nice
if someone could test this.

Works fine here. I've tested undo/redo also with normal text and tables. Everything seems fine.

One tiny comment: maybe you could use a boost::scoped_ptr instead of a raw pointer for undo::pars?

By the way, there's a new mathed and undo related crash (which your patch does not fix):

http://bugzilla.lyx.org/show_bug.cgi?id=3358

Abdel.

Reply via email to