mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Add a comment, per Pavel's suggestion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26874 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
77f0e4da26
commit
9c2fa02d4a
@ -1351,11 +1351,17 @@ void GuiDocument::classChanged()
|
||||
}
|
||||
bp_.useClassDefaults();
|
||||
}
|
||||
// With the introduction of modules came a distinction between the base
|
||||
// class and the document class. The former corresponds to the main layout
|
||||
// file; the latter is that plus the modules (or the document-specific layout,
|
||||
// or whatever else there could be). Our parameters come from the document
|
||||
// class. So when we set the base class, we also need to recreate the document
|
||||
// class. Otherwise, we still have the old one.
|
||||
bp_.makeDocumentClass();
|
||||
// FIXME There's a little bug here connected with auto_reset, namely,
|
||||
// that, if the preceding is skipped and the user has changed the
|
||||
// modules before changing the class, those changes will be lost on
|
||||
// update. But maybe that's what we want?
|
||||
bp_.makeDocumentClass();
|
||||
updateSelectedModules();
|
||||
paramsToDialog(bp_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user