Fix crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23885 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-21 18:45:22 +00:00
parent 2e9d0f7524
commit 9cdb718aa5

View File

@ -1603,6 +1603,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
DocumentClass * oldClass = buffer->params().documentClassPtr();
LayoutFileIndex bc = buffer->params().baseClassID();
LayoutFileList::get().reset(bc);
buffer->params().setBaseClass(bc);
buffer->params().makeDocumentClass();
updateLayout(oldClass, buffer);
updateFlags = Update::Force | Update::FitCursor;