]> git.lyx.org Git - features.git/commitdiff
* GuiDocument.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 7 Apr 2009 08:39:56 +0000 (08:39 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 7 Apr 2009 08:39:56 +0000 (08:39 +0000)
- minor UI fixes wrt XeTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29137 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 378ff9df1fb0572f79b3992c41143a92bb89ff51..8d85dddeb487b280a93cf2e803f5381b4a0b2d0a 100644 (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,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";