The fix (Angus|John)(?) came up with for the lockup still does not seem
to be applied. (attached again)

It fixes the problem and does not seem wrong.

Ok to apply?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
? elsart.diff
? lockup.diff
? images/greek.xpm
? lib/scripts/fig2eps
? lib/scripts/fig2tex
? lib/scripts/fig2xpm
? sigc++/Makefile.in
? sigc++/macros/Makefile.in
? src/lyx_main
? src/old.diff
? src/1.diff
? src/s-and-r.diff
? src/workarea.diff.gz
? src/frontends/qt2/xforms/Makefile.in
? src/insets/insetbase.C
? src/insets/insettext.C.try
? src/mathed/tmp.diff
? src/mathed/1.diff
? src/mathed/haveit
? src/mathed/script.diff
? src/mathed/all
? src/mathed/rmcopyright.sh
? src/mathed/.math_mathmlstream.C.swp
? src/mathed/.math_cursor.h.swp
? src/mathed/shared_ptr.diff
Index: src/frontends/controllers/ControlDocument.C
===================================================================
RCS file: 
/usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlDocument.C,v
retrieving revision 1.1
diff -u -p -r1.1 ControlDocument.C
--- src/frontends/controllers/ControlDocument.C 9 Oct 2002 08:59:01 -0000       1.1
+++ src/frontends/controllers/ControlDocument.C 14 Oct 2002 12:45:22 -0000
@@ -153,7 +153,9 @@ void ControlDocument::saveAsDefault()
        defaults.params = params();
 
        // add an empty paragraph. Is this enough?
-       defaults.paragraphs.set(new Paragraph);
+       Paragraph * par = new Paragraph;
+       par->layout(params().getLyXTextClass().defaultLayout());
+       defaults.paragraphs.set(par);
        
        defaults.writeFile(defaults.fileName());
 
Index: src/frontends/xforms/FormDocument.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormDocument.C,v
retrieving revision 1.119
diff -u -p -r1.119 FormDocument.C
--- src/frontends/xforms/FormDocument.C 4 Oct 2002 10:39:01 -0000       1.119
+++ src/frontends/xforms/FormDocument.C 14 Oct 2002 12:45:22 -0000
@@ -412,7 +412,9 @@ bool saveParamsAsDefault(BufferParams co
        defaults.params = params;
 
        // add an empty paragraph. Is this enough?
-       defaults.paragraphs.set(new Paragraph);
+       Paragraph * par = new Paragraph;
+       par->layout(params.getLyXTextClass().defaultLayout());
+       defaults.paragraphs.set(par);
 
        return defaults.writeFile(defaults.fileName());
 }

Reply via email to