]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.C
One third of Andre' no-gui patch.
[lyx.git] / src / FontInfo.C
index c4ec36d9dc1a29d32bf54c15cfb6a662a82fabcf..4daf1d86aa52371496e0ab983dd2f7eed462c4a5 100644 (file)
@@ -112,7 +112,9 @@ void FontInfo::query()
                return;
        }
 
-       char ** list = XListFonts(fl_display, pattern.c_str(), 100, &matches);
+       char ** list = 0;
+       if (lyxrc.use_gui)
+               list = XListFonts(fl_display, pattern.c_str(), 100, &matches);
 
        if (list == 0) {
                // No fonts matched