* GuiDocument.cpp:

- minor UI fixes wrt XeTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29137 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-04-07 08:39:56 +00:00
parent 831724578c
commit 5fd1f2211c

View File

@ -1165,6 +1165,10 @@ void GuiDocument::xetexChanged(bool xetex)
!langModule->defaultencodingRB->isChecked());
langModule->defaultencodingRB->setEnabled(!xetex);
langModule->otherencodingRB->setEnabled(!xetex);
fontModule->fontsDefaultCO->setEnabled(!xetex);
if (xetex)
fontModule->fontScCB->setEnabled(false);
}
@ -1839,6 +1843,9 @@ void GuiDocument::applyView()
bp_.fontsOSF = fontModule->fontOsfCB->isChecked();
if (xetex)
bp_.fontsDefaultFamily = "default";
else
bp_.fontsDefaultFamily = GuiDocument::fontfamilies[
fontModule->fontsDefaultCO->currentIndex()];