]> git.lyx.org Git - features.git/commitdiff
forgot this in previous revision.
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 9 Feb 2011 08:25:24 +0000 (08:25 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 9 Feb 2011 08:25:24 +0000 (08:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37568 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index 788a6f93a5bc68b55f734746b79aefd552c0ab75..35bf6111a9b21aba2f884540b56555a742e09d1d 100644 (file)
@@ -2624,7 +2624,7 @@ string const BufferParams::loadFonts(string const & rm,
         *    -- if there's a way to find out if a font really supports
         *       OldStyle, enable/disable the widget accordingly. 
        */
-       if (use_systemfonts) {
+       if (use_systemfonts && features.isAvailable("fontspec")) {
                // "Mapping=tex-text" and "Ligatures=TeX" are equivalent.
                // However, until v.2 (2010/07/11) fontspec only knew
                // Mapping=tex-text (for XeTeX only); then "Ligatures=TeX"