>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> <C-n> s<Return> s<Up> <M-p><S-C> <Down> <S-Up> <M-p><S-C>

Andre> No time to look into it.

Note that this is also bug #652, reported also last week.

I think the attached patch shows clearly what was wrong :) I have a
similar one for 1.2.x.

Lars, can I apply it?

JMarc

Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.949
diff -u -p -r1.949 ChangeLog
--- src/ChangeLog	7 Oct 2002 13:31:37 -0000	1.949
+++ src/ChangeLog	8 Oct 2002 09:07:15 -0000
@@ -1,5 +1,7 @@
 2002-10-07  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
 
+	* text3.C (dispatch): when changing layout, avoid an infinite loop
+
 	* lyx_main.C (queryUserLyXDir): re-run automatically the configure
 	script if it is newer than the lyxrc.defaults in user directory
 
Index: src/text3.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v
retrieving revision 1.23
diff -u -p -r1.23 text3.C
--- src/text3.C	11 Sep 2002 14:48:19 -0000	1.23
+++ src/text3.C	8 Oct 2002 09:07:16 -0000
@@ -1104,6 +1104,7 @@ Inset::RESULT LyXText::dispatch(FuncRequ
 					change_layout = true;
 					break;
 				}
+				spar = spar->next();
 			}
 		}
 		if (change_layout) {

Reply via email to