]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphicsParams.C
fix #832
[lyx.git] / src / insets / insetgraphicsParams.C
index 7ce47109746e7260af1b7fca0c55dafe30fdc613..d8b01f8404fca99e15da88a75dd873b985edf18f 100644 (file)
@@ -24,6 +24,7 @@
 #include "lyxrc.h"
 #include "debug.h"
 #include "lyxlex.h"
+#include "frontends/lyx_gui.h"
 
 using std::ostream;
 
@@ -306,7 +307,7 @@ grfx::Params InsetGraphicsParams::as_grfxParams(string const & filepath) const
        }
 
        // Override the above if we're not using a gui
-       if (!lyxrc.use_gui) {
+       if (!lyx_gui::use_gui) {
                pars.display = grfx::NoDisplay;
        }