John Levon wrote:
> > - 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
>
> bug #306

It seems to me that the attached patch fixes this bug. But I am not 
shure that I interpret the function of params.textclass and 
params.UseClassDefault right.

Juergen.
Index: src/frontends/xforms/ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/ChangeLog,v
retrieving revision 1.338
diff -u -r1.338 ChangeLog
--- src/frontends/xforms/ChangeLog	2002/03/27 12:27:17	1.338
+++ src/frontends/xforms/ChangeLog	2002/03/28 07:41:03
@@ -1,3 +1,8 @@
+2002-03-28  Juergen Spitzmueller <[EMAIL PROTECTED]>
+
+	* FormDocument.C (CheckChoiceClass): update the necessary class
+	settings on class change (fix bug #306)
+
 2002-03-27  Herbert Voss  <[EMAIL PROTECTED]>

 	* xforms_helpers.h:
Index: src/frontends/xforms/FormDocument.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormDocument.C,v
retrieving revision 1.93
diff -u -r1.93 FormDocument.C
--- src/frontends/xforms/FormDocument.C	2002/03/21 21:18:02	1.93
+++ src/frontends/xforms/FormDocument.C	2002/03/28 07:41:06
@@ -1458,7 +1458,11 @@
 			params.textclass = tc;
 			params.useClassDefaults();
 			UpdateLayoutDocument(params);
+		} else {
+			params.textclass = tc;
+			UpdateLayoutDocument(params);
 		}
+
 	} else {
 		// unable to load new style
 		Alert::alert(_("Conversion Errors!"),

Reply via email to