>>>>> "Jacek" == Jacek M Holeczek <[EMAIL PROTECTED]> writes:

>> Should be fixed now, please test it.
Jacek> Could I ask for a patch file ( against lyx-1.0.0pre4 ) ?  No
Jacek> chance I can use rcs/cvs.  Thanks in advance, Jacek.

Try the appended patch (I hope I got it right...).

JMarc

Index: src/math_iter.C
===================================================================
RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/math_iter.C,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- math_iter.C 1998/10/26 22:18:54     1.1.1.1
+++ math_iter.C 1998/11/30 17:26:29     1.2
@@ -380,11 +380,11 @@
    while (OK()) {
       if (IsInset()) {
         MathedInset* inset = GetInset();
-         Delete();
          if (inset->GetType()!=LM_OT_MACRO_ARG)
            delete inset;
+         Delete();
       } else
-      Next();
+       Next();
    }
 }
 
@@ -444,8 +444,10 @@
     while (OK() && pos<pos2) {
        if (IsInset()) {
            MathedInset* inset = GetInset();
+           Next();
            if (inset->GetType()!=LM_OT_MACRO_ARG)
              delete inset;
+           continue;
        } 
        if (IsCR()) {
            if (crow) {

Reply via email to