The attached onliner fixes the issue for me (and Uwe).

Explanation: if current_layout is updated here, the test in LyXView.cpp:462 
returns false and the combo is not updated. Furthermore, current_layout will 
be reset in LyXView.cpp (after the combo update).

OK?

Jürgen
Index: src/Text3.cpp
===================================================================
--- src/Text3.cpp	(Revision 18821)
+++ src/Text3.cpp	(Arbeitskopie)
@@ -947,7 +947,6 @@
 		}
 
 		if (change_layout) {
-			current_layout = layout;
 			setLayout(cur, layout);
 			// inform the GUI that the layout has changed.
 			bv->layoutChanged(layout);

Reply via email to