lang apply fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7126 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-06-06 14:47:43 +00:00
parent 09a88b9c87
commit 387d1c6416
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-06-06 John Levon <levon@movementarian.org>
* ControlDocument.C: make sure a language change
always gets propogated
2003-06-03 Angus Leeming <leeming@lyx.org>
* ControlExternal.[Ch]: remove viewExternal and updateExternal.

View File

@ -63,10 +63,14 @@ void ControlDocument::apply()
if (!bufferIsAvailable())
return;
view().apply();
// this must come first so that a language change
// is correctly noticed
setLanguage();
classApply();
view().apply();
setLanguage();
buffer()->params = *bp_;
lv_.view()->redoCurrentBuffer();
@ -114,7 +118,6 @@ void ControlDocument::classApply()
return;
// successfully loaded
view().apply();
buffer()->params = *bp_;
lv_.message(_("Converting document to new document class..."));