]> git.lyx.org Git - lyx.git/blobdiff - src/FontInfo.C
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / FontInfo.C
index 38579ce2eadd0bdd0c046ac6ce98e30276f831dc..43aa03c5770277ea01e79389ef3b466c3b99ed97 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  * 
@@ -12,8 +11,6 @@
 #include <config.h>
 #include <cmath>       // fabs()
 
-#include FORMS_H_LOCATION
-
 #ifdef __GNUG__
 #pragma implementation "FontInfo.h"
 #endif
@@ -22,6 +19,7 @@
 #include "debug.h"
 #include "lyxrc.h"     // lyxrc.use_scalable_fonts
 #include "support/lstrings.h"
+#include "frontends/GUIRunTime.h"
 
 using std::endl;
 
@@ -120,7 +118,8 @@ void FontInfo::query()
 
        char ** list = 0;
        if (lyxrc.use_gui)
-               list = XListFonts(fl_get_display(), pattern.c_str(), 100, &matches);
+               list = XListFonts(GUIRunTime::x11Display(), pattern.c_str(),
+                                 100, &matches);
 
        if (list == 0) {
                // No fonts matched