fix lockup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5389 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-10-14 13:25:15 +00:00
parent 8bd80f2b4e
commit c7b1647c97
4 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-10-14 André Pönitz <poenitz@gmx.net>
* ControlDocument.C: somebody else's fix for a hard lockup
2002-10-09 Edwin Leuven <leuven@fee.uva.nl>
* ControlDocument.h:

View File

@ -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());

View File

@ -1,3 +1,8 @@
2002-10-14 André Pönitz <poenitz@gmx.net>
* FormDocument.C: somebody else's fix for a hard lockup
2002-10-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* xforms_helpers.C (formatted): fix small typo, spotted by Rob

View File

@ -412,7 +412,9 @@ bool saveParamsAsDefault(BufferParams const &params)
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());
}