Helge Hafting wrote:
> 1.Insert math, type 1+1
> 2.Select the "+" using the mouse
> 3.Ctrl+x to delete the selected plus-sign.
> 4.Undo, note that the math turns into 1+  instead of the expected 1+1
>
> Do this somewhere inside a fraction, and it might crash too.

Can you try if the attached fixes this?

Jürgen
Index: math_nestinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_nestinset.C,v
retrieving revision 1.168
diff -u -r1.168 math_nestinset.C
--- math_nestinset.C	20 Sep 2005 08:31:37 -0000	1.168
+++ math_nestinset.C	24 Sep 2005 09:16:42 -0000
@@ -423,6 +423,7 @@
 	}
 
 	case LFUN_CUT:
+		recordUndo(cur);
 		cutSelection(cur, true, true);
 		cur.message(_("Cut"));
 		// Prevent stale position >= size crash

Reply via email to