mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
* 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:
parent
831724578c
commit
5fd1f2211c
@ -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,8 +1843,11 @@ void GuiDocument::applyView()
|
||||
|
||||
bp_.fontsOSF = fontModule->fontOsfCB->isChecked();
|
||||
|
||||
bp_.fontsDefaultFamily = GuiDocument::fontfamilies[
|
||||
fontModule->fontsDefaultCO->currentIndex()];
|
||||
if (xetex)
|
||||
bp_.fontsDefaultFamily = "default";
|
||||
else
|
||||
bp_.fontsDefaultFamily = GuiDocument::fontfamilies[
|
||||
fontModule->fontsDefaultCO->currentIndex()];
|
||||
|
||||
if (fontModule->fontsizeCO->currentIndex() == 0)
|
||||
bp_.fontsize = "default";
|
||||
|
Loading…
Reference in New Issue
Block a user