John Levon wrote: > > - When I change from Article to Article (AMS), LyX resets all my > > language and paper settings. Not nice! A result from a bug fix: (The > > list of font size options (e.g. AMS allows 9pt) is not updated > > immediately in the document layout dialog when you change the document > > class (#306)). > > Juergen S. ?
Hmm... ok, my bugfix was obviously wrong. The attached patch reverts the changes. I have no really good idea how to fix this bug. The fontsizes of the AMS class are only read in after pressing OK/ reopening the dialog, neither on class change nor on apply. NOTE: this is an old bug. It is also present in 1.1.6 (if you say "NO" to the question after class change). I have reopened bug #306 and I need some help on this. Any ideas? Thanks. Juergen
Index: src/frontends/xforms/ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.345 diff -u -r1.345 ChangeLog --- src/frontends/xforms/ChangeLog 2002/04/06 13:15:10 1.345 +++ src/frontends/xforms/ChangeLog 2002/04/07 16:40:26 @@ -1,3 +1,7 @@ +2002-04-07 Juergen Spitzmueller <[EMAIL PROTECTED]> + + * FormDocument.C (CheckChoiceClass): Revert my patch from 2002-03-28 + 2002-04-06 Lars Gullik Bjønnes <[EMAIL PROTECTED]> * forms/.cvsignore: add Makefile.in Index: src/frontends/xforms/FormDocument.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormDocument.C,v retrieving revision 1.94 diff -u -r1.94 FormDocument.C --- src/frontends/xforms/FormDocument.C 2002/03/28 13:15:16 1.94 +++ src/frontends/xforms/FormDocument.C 2002/04/07 16:40:29 @@ -1458,9 +1458,6 @@ params.textclass = tc; params.useClassDefaults(); UpdateLayoutDocument(params); - } else { - params.textclass = tc; - UpdateLayoutDocument(params); } } else {