mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Minor fixups thanks to Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38744 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
78a623e3d6
commit
605d3121f8
@ -2141,20 +2141,20 @@ void GuiDocument::updateDefaultFormat()
|
||||
if (!bufferview())
|
||||
return;
|
||||
// make a copy in order to consider unapplied changes
|
||||
BufferParams tmp = buffer().params();
|
||||
tmp.useNonTeXFonts = fontModule->osFontsCB->isChecked();
|
||||
int idx = latexModule->classCO->currentIndex();
|
||||
BufferParams param_copy = buffer().params();
|
||||
param_copy.useNonTeXFonts = fontModule->osFontsCB->isChecked();
|
||||
int const idx = latexModule->classCO->currentIndex();
|
||||
if (idx >= 0) {
|
||||
string const classname = classes_model_.getIDString(idx);
|
||||
tmp.setBaseClass(classname);
|
||||
tmp.makeDocumentClass();
|
||||
param_copy.setBaseClass(classname);
|
||||
param_copy.makeDocumentClass();
|
||||
}
|
||||
outputModule->defaultFormatCO->blockSignals(true);
|
||||
outputModule->defaultFormatCO->clear();
|
||||
outputModule->defaultFormatCO->addItem(qt_("Default"),
|
||||
QVariant(QString("default")));
|
||||
typedef vector<Format const *> Formats;
|
||||
Formats formats = tmp.exportableFormats(true);
|
||||
Formats formats = param_copy.exportableFormats(true);
|
||||
Formats::const_iterator cit = formats.begin();
|
||||
Formats::const_iterator end = formats.end();
|
||||
for (; cit != end; ++cit)
|
||||
|
Loading…
Reference in New Issue
Block a user